Merge "Prevent bouncer from showing during unlock animation" into udc-dev am: 557775c493 am: 5a959a3f65
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23448831 Change-Id: Ie387463c027c7d16d0605c848670c88c15cc11bd Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -495,6 +495,7 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb
|
||||
|
||||
return mKeyguardStateController.isShowing()
|
||||
&& !primaryBouncerIsOrWillBeShowing()
|
||||
&& !mKeyguardStateController.isKeyguardGoingAway()
|
||||
&& isUserTrackingStarted
|
||||
&& !hideBouncerOverDream
|
||||
&& !mKeyguardStateController.isOccluded()
|
||||
|
||||
@@ -351,6 +351,17 @@ public class StatusBarKeyguardViewManagerTest extends SysuiTestCase {
|
||||
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
|
||||
public void onPanelExpansionChanged_neverTranslatesBouncerWhenShowBouncer() {
|
||||
// Since KeyguardBouncer.EXPANSION_VISIBLE = 0 panel expansion, if the unlock is dismissing
|
||||
|
||||
Reference in New Issue
Block a user