Merge "Bouncer animation and message" into pi-dev

am: be72f3d5b8

Change-Id: Ib2244c7f448e7dafe0f6f87958e8677949de808f
This commit is contained in:
Lucas Dupin
2018-04-10 14:00:38 -07:00
committed by android-build-merger
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.cancel(false);
mPendingLockCheck = null; mPendingLockCheck = null;
} }
reset();
} }
@Override @Override
public void onResume(int reason) { public void onResume(int reason) {
reset();
} }
@Override @Override

View File

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

View File

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