Merge "Bouncer animation and message" into pi-dev

This commit is contained in:
Lucas Dupin
2018-04-10 20:45:13 +00:00
committed by Android (Google) Code Review
3 changed files with 7 additions and 2 deletions

View File

@@ -265,11 +265,11 @@ public abstract class KeyguardAbsKeyInputView extends LinearLayout
mPendingLockCheck.cancel(false);
mPendingLockCheck = null;
}
reset();
}
@Override
public void onResume(int reason) {
reset();
}
@Override

View File

@@ -1184,6 +1184,10 @@ public class KeyguardViewMediator extends SystemUI {
Trace.endSection();
}
public boolean isHiding() {
return mHiding;
}
/**
* Handles SET_OCCLUDED message sent by setOccluded()
*/

View File

@@ -3942,7 +3942,8 @@ public class StatusBar extends SystemUI implements DemoMode,
}
private void showBouncerIfKeyguard() {
if (mState == StatusBarState.KEYGUARD || mState == StatusBarState.SHADE_LOCKED) {
if ((mState == StatusBarState.KEYGUARD || mState == StatusBarState.SHADE_LOCKED)
&& !mKeyguardViewMediator.isHiding()) {
showBouncer(true /* animated */);
}
}