Merge "Prevent bouncer from showing during unlock animation" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
557775c493
@@ -495,6 +495,7 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb
|
|||||||
|
|
||||||
return mKeyguardStateController.isShowing()
|
return mKeyguardStateController.isShowing()
|
||||||
&& !primaryBouncerIsOrWillBeShowing()
|
&& !primaryBouncerIsOrWillBeShowing()
|
||||||
|
&& !mKeyguardStateController.isKeyguardGoingAway()
|
||||||
&& isUserTrackingStarted
|
&& isUserTrackingStarted
|
||||||
&& !hideBouncerOverDream
|
&& !hideBouncerOverDream
|
||||||
&& !mKeyguardStateController.isOccluded()
|
&& !mKeyguardStateController.isOccluded()
|
||||||
|
|||||||
@@ -351,6 +351,17 @@ public class StatusBarKeyguardViewManagerTest extends SysuiTestCase {
|
|||||||
verify(mPrimaryBouncerInteractor, never()).setPanelExpansion(anyFloat());
|
verify(mPrimaryBouncerInteractor, never()).setPanelExpansion(anyFloat());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void onPanelExpansionChanged_neverTranslatesBouncerWhenGoingAway() {
|
||||||
|
when(mKeyguardStateController.isKeyguardGoingAway()).thenReturn(true);
|
||||||
|
mStatusBarKeyguardViewManager.onPanelExpansionChanged(
|
||||||
|
expansionEvent(
|
||||||
|
/* fraction= */ EXPANSION_VISIBLE,
|
||||||
|
/* expanded= */ true,
|
||||||
|
/* tracking= */ false));
|
||||||
|
verify(mPrimaryBouncerInteractor, never()).setPanelExpansion(anyFloat());
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void onPanelExpansionChanged_neverTranslatesBouncerWhenShowBouncer() {
|
public void onPanelExpansionChanged_neverTranslatesBouncerWhenShowBouncer() {
|
||||||
// Since KeyguardBouncer.EXPANSION_VISIBLE = 0 panel expansion, if the unlock is dismissing
|
// Since KeyguardBouncer.EXPANSION_VISIBLE = 0 panel expansion, if the unlock is dismissing
|
||||||
|
|||||||
Reference in New Issue
Block a user