Dismiss the keyguard through #notifyKeyguardAuthentiated
In case a pending dismiss action exists when dreaming. Test: manually launch an intent from dreaming and authenticate through the alternate bouncer => see intent gets triggered after authentication Test: atest KeyguardViewMediatorTest Fixes: 277284836 Change-Id: I9120460ad945caf015ea1b678d2a6e41103d42c7
This commit is contained in:
@@ -3098,7 +3098,7 @@ public class KeyguardViewMediator implements CoreStartable, Dumpable,
|
||||
Trace.beginSection("KeyguardViewMediator#onWakeAndUnlocking");
|
||||
mWakeAndUnlocking = true;
|
||||
|
||||
keyguardDone();
|
||||
mKeyguardViewControllerLazy.get().notifyKeyguardAuthenticated(/* strongAuth */ false);
|
||||
Trace.endSection();
|
||||
}
|
||||
|
||||
|
||||
@@ -549,6 +549,12 @@ public class KeyguardViewMediatorTest extends SysuiTestCase {
|
||||
assertTrue(mViewMediator.isShowingAndNotOccluded());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWakeAndUnlocking() {
|
||||
mViewMediator.onWakeAndUnlocking();
|
||||
verify(mStatusBarKeyguardViewManager).notifyKeyguardAuthenticated(anyBoolean());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testOnStartedWakingUp_logsUiEvent() {
|
||||
final InstanceId instanceId = InstanceId.fakeInstanceId(8);
|
||||
|
||||
Reference in New Issue
Block a user