Hide biometric lock times when biometric lock is not enabled
This commit is contained in:
parent
a481f3239c
commit
853f195d0e
@ -65,6 +65,9 @@ class SettingsSecurityController : SettingsController() {
|
|||||||
val timeRanges = preferences.biometricTimeRanges().get().count()
|
val timeRanges = preferences.biometricTimeRanges().get().count()
|
||||||
summary = context.resources.getQuantityString(R.plurals.num_lock_times, timeRanges, timeRanges)
|
summary = context.resources.getQuantityString(R.plurals.num_lock_times, timeRanges, timeRanges)
|
||||||
|
|
||||||
|
preferences.useBiometricLock().asImmediateFlow { isVisible = it }
|
||||||
|
.launchIn(scope)
|
||||||
|
|
||||||
onClick {
|
onClick {
|
||||||
router.pushController(BiometricTimesController().withFadeTransaction())
|
router.pushController(BiometricTimesController().withFadeTransaction())
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user