diff --git a/src/com/cherish/settings/fragments/CherishDashboardFragment.kt b/src/com/cherish/settings/fragments/CherishDashboardFragment.kt index 0e9d52b..3b5b65d 100644 --- a/src/com/cherish/settings/fragments/CherishDashboardFragment.kt +++ b/src/com/cherish/settings/fragments/CherishDashboardFragment.kt @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.cherish.settings.fragment +package com.cherish.settings.fragments import androidx.preference.Preference @@ -31,4 +31,4 @@ abstract class CherishDashboardFragment: DashboardFragment() { companion object { const val REQUEST_KEY = "CherishDashboardFragment#RequestKey" } -} +} \ No newline at end of file diff --git a/src/com/cherish/settings/security/applock/AppLockBiometricPreferenceController.kt b/src/com/cherish/settings/security/applock/AppLockBiometricPreferenceController.kt index cf90a9e..2172a4f 100644 --- a/src/com/cherish/settings/security/applock/AppLockBiometricPreferenceController.kt +++ b/src/com/cherish/settings/security/applock/AppLockBiometricPreferenceController.kt @@ -63,6 +63,7 @@ class AppLockBiometricPreferenceController( override fun isChecked() = isBiometricsAllowed override fun setChecked(checked: Boolean): Boolean { + if (isBiometricsAllowed == checked) return false isBiometricsAllowed = checked coroutineScope.launch(Dispatchers.Default) { appLockManager.setBiometricsAllowed(isBiometricsAllowed) diff --git a/src/com/cherish/settings/security/applock/AppLockNotificationRedactionPC.kt b/src/com/cherish/settings/security/applock/AppLockNotificationRedactionPC.kt index a63302a..3dcfd5a 100644 --- a/src/com/cherish/settings/security/applock/AppLockNotificationRedactionPC.kt +++ b/src/com/cherish/settings/security/applock/AppLockNotificationRedactionPC.kt @@ -59,6 +59,7 @@ class AppLockNotificationRedactionPC( override fun isChecked() = shouldRedactNotification override fun setChecked(checked: Boolean): Boolean { + if (shouldRedactNotification == checked) return false shouldRedactNotification = checked coroutineScope.launch(Dispatchers.Default) { appLockManager.setShouldRedactNotification(packageName, checked) diff --git a/src/com/cherish/settings/security/applock/AppLockPackageProtectionPC.kt b/src/com/cherish/settings/security/applock/AppLockPackageProtectionPC.kt index 519b714..05c8e1a 100644 --- a/src/com/cherish/settings/security/applock/AppLockPackageProtectionPC.kt +++ b/src/com/cherish/settings/security/applock/AppLockPackageProtectionPC.kt @@ -60,6 +60,7 @@ class AppLockPackageProtectionPC( override fun isChecked() = isProtected override fun setChecked(checked: Boolean): Boolean { + if (isProtected == checked) return false isProtected = checked coroutineScope.launch(Dispatchers.Default) { if (isProtected) {