diff options
author | 2025-03-24 04:19:24 -0700 | |
---|---|---|
committer | 2025-03-24 04:19:24 -0700 | |
commit | cadaad60d9f1437c8cbafdb065058b74490dd60f (patch) | |
tree | f86e793e101210acc46b0a90fe53b4dd1f4e09c1 /packages/SystemUI/src | |
parent | 659fb5a55012022bbe6bb602d59b0b9b9dd34c3f (diff) | |
parent | 6b584af3f3b8f326eae0b332bbaed5167d966115 (diff) |
Merge "Ensure canWakeDirectlyToGone is updated when the startedStep emits." into main
Diffstat (limited to 'packages/SystemUI/src')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/KeyguardWakeDirectlyToGoneInteractor.kt | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/KeyguardWakeDirectlyToGoneInteractor.kt b/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/KeyguardWakeDirectlyToGoneInteractor.kt index ef1fe49372b2..6249b8006083 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/KeyguardWakeDirectlyToGoneInteractor.kt +++ b/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/KeyguardWakeDirectlyToGoneInteractor.kt @@ -33,9 +33,11 @@ import com.android.systemui.keyguard.KeyguardViewMediator import com.android.systemui.keyguard.KeyguardWmStateRefactor import com.android.systemui.keyguard.data.repository.KeyguardRepository import com.android.systemui.keyguard.shared.model.BiometricUnlockMode +import com.android.systemui.keyguard.shared.model.BiometricUnlockModel import com.android.systemui.keyguard.shared.model.KeyguardState import com.android.systemui.keyguard.shared.model.KeyguardState.Companion.deviceIsAsleepInState import com.android.systemui.keyguard.shared.model.KeyguardState.Companion.deviceIsAwakeInState +import com.android.systemui.keyguard.shared.model.TransitionStep import com.android.systemui.power.domain.interactor.PowerInteractor import com.android.systemui.power.shared.model.WakeSleepReason import com.android.systemui.scene.shared.model.Scenes @@ -137,19 +139,20 @@ constructor( repository.biometricUnlockState, repository.canIgnoreAuthAndReturnToGone, transitionInteractor.currentKeyguardState, - ) { - keyguardEnabled, - shouldSuppressKeyguard, - biometricUnlockState, - canIgnoreAuthAndReturnToGone, - currentState -> + transitionInteractor.startedKeyguardTransitionStep, + ) { values -> + val keyguardEnabled = values[0] as Boolean + val shouldSuppressKeyguard = values[1] as Boolean + val biometricUnlockState = values[2] as BiometricUnlockModel + val canIgnoreAuthAndReturnToGone = values[3] as Boolean + val currentState = values[4] as KeyguardState + val startedStep = values[5] as TransitionStep (!keyguardEnabled || shouldSuppressKeyguard) || BiometricUnlockMode.isWakeAndUnlock(biometricUnlockState.mode) || canIgnoreAuthAndReturnToGone || (currentState == KeyguardState.DREAMING && keyguardInteractor.isKeyguardDismissible.value) || - (currentState == KeyguardState.GONE && - transitionInteractor.getStartedState() == KeyguardState.GONE) + (currentState == KeyguardState.GONE && startedStep.to == KeyguardState.GONE) } .distinctUntilChanged() |