Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBouncer.java +4 −0 Original line number Diff line number Diff line Loading @@ -188,6 +188,10 @@ public class KeyguardBouncer { } if (mContainer.getVisibility() == View.VISIBLE || mShowingSoon) { // Calls to reset must resume the ViewControllers when in fullscreen mode if (needsFullscreenBouncer()) { mKeyguardViewController.onResume(); } return; } Loading packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/KeyguardBouncerTest.java +15 −0 Original line number Diff line number Diff line Loading @@ -475,4 +475,19 @@ public class KeyguardBouncerTest extends SysuiTestCase { mBouncer.setExpansion(bouncerHideAmount); verify(callback, never()).onExpansionChanged(bouncerHideAmount); } @Test public void testOnResumeCalledForFullscreenBouncerOnSecondShow() { // GIVEN a security mode which requires fullscreen bouncer when(mKeyguardSecurityModel.getSecurityMode(anyInt())) .thenReturn(KeyguardSecurityModel.SecurityMode.SimPin); mBouncer.show(true); // WHEN a second call to show occurs, the bouncer will already by visible reset(mKeyguardHostViewController); mBouncer.show(true); // THEN ensure the ViewController is told to resume verify(mKeyguardHostViewController).onResume(); } } Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBouncer.java +4 −0 Original line number Diff line number Diff line Loading @@ -188,6 +188,10 @@ public class KeyguardBouncer { } if (mContainer.getVisibility() == View.VISIBLE || mShowingSoon) { // Calls to reset must resume the ViewControllers when in fullscreen mode if (needsFullscreenBouncer()) { mKeyguardViewController.onResume(); } return; } Loading
packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/KeyguardBouncerTest.java +15 −0 Original line number Diff line number Diff line Loading @@ -475,4 +475,19 @@ public class KeyguardBouncerTest extends SysuiTestCase { mBouncer.setExpansion(bouncerHideAmount); verify(callback, never()).onExpansionChanged(bouncerHideAmount); } @Test public void testOnResumeCalledForFullscreenBouncerOnSecondShow() { // GIVEN a security mode which requires fullscreen bouncer when(mKeyguardSecurityModel.getSecurityMode(anyInt())) .thenReturn(KeyguardSecurityModel.SecurityMode.SimPin); mBouncer.show(true); // WHEN a second call to show occurs, the bouncer will already by visible reset(mKeyguardHostViewController); mBouncer.show(true); // THEN ensure the ViewController is told to resume verify(mKeyguardHostViewController).onResume(); } }