Loading packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/KeyguardEnabledInteractor.kt +13 −7 Original line number Diff line number Diff line Loading @@ -76,7 +76,7 @@ constructor( .filter { enabled -> !enabled } .sampleCombine( internalTransitionInteractor.currentTransitionInfoInternal, biometricSettingsRepository.isCurrentUserInLockdown biometricSettingsRepository.isCurrentUserInLockdown, ) .map { (_, transitionInfo, inLockdown) -> // ...we hide the keyguard, if it's showing and we're not in lockdown. In that case, Loading @@ -91,9 +91,14 @@ constructor( */ scope.launch { if (!SceneContainerFlag.isEnabled) { showKeyguardWhenReenabled .filter { shouldDismiss -> shouldDismiss } .collect { repository.isKeyguardEnabled .filter { enabled -> !enabled } .sampleCombine( biometricSettingsRepository.isCurrentUserInLockdown, internalTransitionInteractor.currentTransitionInfoInternal, ) .collect { (_, inLockdown, currentTransitionInfo) -> if (currentTransitionInfo.to != KeyguardState.GONE && !inLockdown) { keyguardDismissTransitionInteractor.startDismissKeyguardTransition( "keyguard disabled" ) Loading @@ -101,6 +106,7 @@ constructor( } } } } fun notifyKeyguardEnabled(enabled: Boolean) { repository.setKeyguardEnabled(enabled) Loading Loading
packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/KeyguardEnabledInteractor.kt +13 −7 Original line number Diff line number Diff line Loading @@ -76,7 +76,7 @@ constructor( .filter { enabled -> !enabled } .sampleCombine( internalTransitionInteractor.currentTransitionInfoInternal, biometricSettingsRepository.isCurrentUserInLockdown biometricSettingsRepository.isCurrentUserInLockdown, ) .map { (_, transitionInfo, inLockdown) -> // ...we hide the keyguard, if it's showing and we're not in lockdown. In that case, Loading @@ -91,9 +91,14 @@ constructor( */ scope.launch { if (!SceneContainerFlag.isEnabled) { showKeyguardWhenReenabled .filter { shouldDismiss -> shouldDismiss } .collect { repository.isKeyguardEnabled .filter { enabled -> !enabled } .sampleCombine( biometricSettingsRepository.isCurrentUserInLockdown, internalTransitionInteractor.currentTransitionInfoInternal, ) .collect { (_, inLockdown, currentTransitionInfo) -> if (currentTransitionInfo.to != KeyguardState.GONE && !inLockdown) { keyguardDismissTransitionInteractor.startDismissKeyguardTransition( "keyguard disabled" ) Loading @@ -101,6 +106,7 @@ constructor( } } } } fun notifyKeyguardEnabled(enabled: Boolean) { repository.setKeyguardEnabled(enabled) Loading