From ef4af82145d5b8d053f9486bc3d4b4c464ab6ab6 Mon Sep 17 00:00:00 2001 From: Sylvia van Os Date: Sun, 19 Jul 2026 22:40:30 +0200 Subject: [PATCH] Restructure smartwatch support settings --- .../protect/card_locker/preferences/SettingsActivity.kt | 8 ++++---- app/src/main/res/values/strings.xml | 8 ++++---- app/src/main/res/xml/preferences.xml | 7 +------ 3 files changed, 9 insertions(+), 14 deletions(-) diff --git a/app/src/main/java/protect/card_locker/preferences/SettingsActivity.kt b/app/src/main/java/protect/card_locker/preferences/SettingsActivity.kt index 9787f0424..afef496bf 100644 --- a/app/src/main/java/protect/card_locker/preferences/SettingsActivity.kt +++ b/app/src/main/java/protect/card_locker/preferences/SettingsActivity.kt @@ -170,6 +170,10 @@ class SettingsActivity : CatimaAppCompatActivity() { true } + // Hide crash reporter settings on builds it's not enabled on + val crashReporterPreference = findPreference("acra.enable") + crashReporterPreference!!.isVisible = BuildConfig.useAcraCrashReporter + val wearSyncPreference = findPreference(getString(R.string.settings_key_wear_sync)) wearSyncPreference!!.setOnPreferenceChangeListener { preference, newValue -> val enabled = newValue as Boolean @@ -187,10 +191,6 @@ class SettingsActivity : CatimaAppCompatActivity() { true } } - - // Hide crash reporter settings on builds it's not enabled on - val crashReporterPreference = findPreference("acra.enable") - crashReporterPreference!!.isVisible = BuildConfig.useAcraCrashReporter } private fun showWearSyncPermissionDeniedSnackbar() { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index e7a1067c7..67e452760 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -104,8 +104,8 @@ Pause NFC Pauses NFC to prevent NFC payments from triggering while viewing a card pref_disable_nfc_while_viewing_card - Allow other apps to access my data - Apps will still have to request permission to be granted access + Sync with Gadgetbridge + Allows the Gadgetbridge app to sync your cards to supported watches pref_disable_lockscreen_while_viewing_card pref_allow_content_provider_read pref_oled_dark @@ -304,10 +304,9 @@ pref_column_count_landscape General Privacy - Wear OS pref_wear_sync Sync with Wear OS - Allow a Wear OS companion app to read your cards over Bluetooth + Allows the Wear OS companion app to read your cards over Bluetooth Allow Catima access to nearby devices to sync with your smartwatch Open settings Display options @@ -361,4 +360,5 @@ Failed to pause NFC Wear OS companion Catima watch sync active + Smartwatch support diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml index 37d407c49..9eed37c56 100644 --- a/app/src/main/res/xml/preferences.xml +++ b/app/src/main/res/xml/preferences.xml @@ -121,7 +121,7 @@ - - -