Fix hide on create Activity if unlocked

This commit is contained in:
PhilKes 2025-05-05 18:30:06 +02:00 committed by Phil
parent e553e78efb
commit 2341c30586

View file

@ -64,7 +64,10 @@ abstract class LockedActivity<T : ViewBinding> : AppCompatActivity() {
override fun onPause() {
super.onPause()
if (preferences.biometricLock.value == BiometricLock.ENABLED) {
if (
preferences.biometricLock.value == BiometricLock.ENABLED &&
notallyXApplication.locked.value
) {
hide()
}
}