Merge "Fix other reproduction of invisible keyguard race" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2b9ee44d55
@@ -3747,6 +3747,9 @@ public class CentralSurfacesImpl implements CoreStartable, CentralSurfaces {
|
|||||||
} else {
|
} else {
|
||||||
mScrimController.transitionTo(ScrimState.AUTH_SCRIMMED);
|
mScrimController.transitionTo(ScrimState.AUTH_SCRIMMED);
|
||||||
}
|
}
|
||||||
|
// This will cancel the keyguardFadingAway animation if it is running. We need to do
|
||||||
|
// this as otherwise it can remain pending and leave keyguard in a weird state.
|
||||||
|
mUnlockScrimCallback.onCancelled();
|
||||||
} else if (mBouncerShowing && !unlocking) {
|
} else if (mBouncerShowing && !unlocking) {
|
||||||
// Bouncer needs the front scrim when it's on top of an activity,
|
// Bouncer needs the front scrim when it's on top of an activity,
|
||||||
// tapping on a notification, editing QS or being dismissed by
|
// tapping on a notification, editing QS or being dismissed by
|
||||||
|
|||||||
@@ -1024,6 +1024,17 @@ public class CentralSurfacesImplTest extends SysuiTestCase {
|
|||||||
verify(mStatusBarKeyguardViewManager).onKeyguardFadedAway();
|
verify(mStatusBarKeyguardViewManager).onKeyguardFadedAway();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testSetDozingNotUnlocking_transitionToAuthScrimmed_cancelKeyguardFadingAway() {
|
||||||
|
when(mAlternateBouncerInteractor.isVisibleState()).thenReturn(true);
|
||||||
|
when(mKeyguardStateController.isKeyguardFadingAway()).thenReturn(true);
|
||||||
|
|
||||||
|
mCentralSurfaces.updateScrimController();
|
||||||
|
|
||||||
|
verify(mScrimController).transitionTo(eq(ScrimState.AUTH_SCRIMMED_SHADE));
|
||||||
|
verify(mStatusBarKeyguardViewManager).onKeyguardFadedAway();
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testShowKeyguardImplementation_setsState() {
|
public void testShowKeyguardImplementation_setsState() {
|
||||||
when(mLockscreenUserManager.getCurrentProfiles()).thenReturn(new SparseArray<>());
|
when(mLockscreenUserManager.getCurrentProfiles()).thenReturn(new SparseArray<>());
|
||||||
|
|||||||
Reference in New Issue
Block a user