Resolve concrete lint and backup configuration issues
This commit is contained in:
@@ -89,7 +89,7 @@ dependencies {
|
||||
implementation(libs.material)
|
||||
implementation(libs.drawerlayout)
|
||||
implementation(libs.recyclerview)
|
||||
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0")
|
||||
implementation(libs.swiperefreshlayout)
|
||||
|
||||
testImplementation(libs.junit)
|
||||
}
|
||||
|
||||
@@ -1,12 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
<uses-permission android:name="android.permission.USE_BIOMETRIC" />
|
||||
|
||||
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
|
||||
<!-- Required for the all-installed-apps filter; this app is not distributed through Google Play. -->
|
||||
<uses-permission
|
||||
android:name="android.permission.QUERY_ALL_PACKAGES"
|
||||
tools:ignore="QueryAllPackagesPermission" />
|
||||
|
||||
<application
|
||||
android:name=".NotificationLogApplication"
|
||||
android:allowBackup="false"
|
||||
android:dataExtractionRules="@xml/data_extraction_rules"
|
||||
android:fullBackupContent="@xml/backup_rules"
|
||||
android:icon="@drawable/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:supportsRtl="true"
|
||||
|
||||
@@ -185,7 +185,7 @@ class ViewLogsFragment : Fragment(R.layout.fragment_view_logs) {
|
||||
maxLines = if (expanded) Int.MAX_VALUE else 1
|
||||
ellipsize = if (expanded) null else TextUtils.TruncateAt.END
|
||||
if (expanded) {
|
||||
breakStrategy = android.text.Layout.BREAK_STRATEGY_HIGH_QUALITY
|
||||
breakStrategy = android.graphics.text.LineBreaker.BREAK_STRATEGY_HIGH_QUALITY
|
||||
hyphenationFrequency = android.text.Layout.HYPHENATION_FREQUENCY_NONE
|
||||
}
|
||||
textSize = value.textSize
|
||||
|
||||
@@ -41,7 +41,6 @@ enum class NotificationAction {
|
||||
GROUP_SUMMARY_CANCELLED,
|
||||
GROUP_OPTIMIZED,
|
||||
UNAUTOBUNDLED,
|
||||
BUNDLE_DISMISSED,
|
||||
CLEAR_DATA,
|
||||
ASSISTANT_CANCELLED,
|
||||
LOCKDOWN,
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
package se.ajpanton.notificationlog.settings
|
||||
|
||||
import android.content.Context
|
||||
import androidx.core.content.edit
|
||||
|
||||
class AppLockStore(context: Context) {
|
||||
private val prefs = context.getSharedPreferences("app-lock", Context.MODE_PRIVATE)
|
||||
var enabled: Boolean
|
||||
get() = prefs.getBoolean("enabled", false)
|
||||
set(value) = prefs.edit().putBoolean("enabled", value).apply()
|
||||
set(value) = prefs.edit { putBoolean("enabled", value) }
|
||||
}
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||
<solid android:color="?attr/colorSurfaceVariant" />
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="?attr/colorOutline" />
|
||||
<corners android:radius="18dp" />
|
||||
</shape>
|
||||
@@ -1,7 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent"
|
||||
android:importantForAutofill="noExcludeDescendants">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<full-backup-content>
|
||||
<exclude domain="root" path="." />
|
||||
</full-backup-content>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<data-extraction-rules>
|
||||
<cloud-backup disableIfNoEncryptionCapabilities="true">
|
||||
<exclude domain="root" path="." />
|
||||
</cloud-backup>
|
||||
<device-transfer>
|
||||
<exclude domain="root" path="." />
|
||||
</device-transfer>
|
||||
</data-extraction-rules>
|
||||
@@ -7,6 +7,7 @@ fragmentKtx = "1.8.5"
|
||||
material = "1.10.0"
|
||||
drawerLayout = "1.2.0"
|
||||
recyclerView = "1.3.2"
|
||||
swipeRefreshLayout = "1.1.0"
|
||||
junit = "4.13.2"
|
||||
|
||||
[libraries]
|
||||
@@ -16,6 +17,7 @@ fragment-ktx = { group = "androidx.fragment", name = "fragment-ktx", version.ref
|
||||
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
|
||||
drawerlayout = { group = "androidx.drawerlayout", name = "drawerlayout", version.ref = "drawerLayout" }
|
||||
recyclerview = { group = "androidx.recyclerview", name = "recyclerview", version.ref = "recyclerView" }
|
||||
swiperefreshlayout = { group = "androidx.swiperefreshlayout", name = "swiperefreshlayout", version.ref = "swipeRefreshLayout" }
|
||||
junit = { group = "junit", name = "junit", version.ref = "junit" }
|
||||
|
||||
[plugins]
|
||||
|
||||
Reference in New Issue
Block a user