Resolve concrete lint and backup configuration issues

This commit is contained in:
ajp_anton
2026-07-27 22:54:06 +00:00
parent f31a7c8efe
commit a86ea52006
10 changed files with 29 additions and 15 deletions
+1 -1
View File
@@ -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)
}
+8 -2
View File
@@ -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"
+4
View File
@@ -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>