Merge "Fix lock icon animation for bio-auth." into rvc-dev am: 24ec473937 am: 1d2aaf2b26 am: 3667a9a02d
Change-Id: Iaf0141f40716488ae3a35839ba0ab812378ec2d6
This commit is contained in:
@@ -1717,9 +1717,9 @@ public class KeyguardViewMediator extends SystemUI implements Dumpable {
|
||||
resetKeyguardDonePendingLocked();
|
||||
}
|
||||
|
||||
mUpdateMonitor.clearBiometricRecognized();
|
||||
|
||||
if (mGoingToSleep) {
|
||||
mUpdateMonitor.clearBiometricRecognized();
|
||||
Log.i(TAG, "Device is going to sleep, aborting keyguardDone");
|
||||
return;
|
||||
}
|
||||
@@ -1740,6 +1740,7 @@ public class KeyguardViewMediator extends SystemUI implements Dumpable {
|
||||
}
|
||||
|
||||
handleHide();
|
||||
mUpdateMonitor.clearBiometricRecognized();
|
||||
Trace.endSection();
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,6 @@ public class LockIcon extends KeyguardAffordanceView {
|
||||
mPredrawRegistered = false;
|
||||
|
||||
int newState = mState;
|
||||
mOldState = mState;
|
||||
Drawable icon = getIcon(newState);
|
||||
setImageDrawable(icon, false);
|
||||
|
||||
@@ -135,6 +134,7 @@ public class LockIcon extends KeyguardAffordanceView {
|
||||
}
|
||||
|
||||
void update(int newState, boolean pulsing, boolean dozing, boolean keyguardJustShown) {
|
||||
mOldState = mState;
|
||||
mState = newState;
|
||||
mPulsing = pulsing;
|
||||
mDozing = dozing;
|
||||
|
||||
@@ -470,8 +470,10 @@ public class LockscreenLockIconController {
|
||||
}
|
||||
|
||||
private int getState() {
|
||||
if ((mKeyguardStateController.canDismissLockScreen() || !mKeyguardShowing
|
||||
|| mKeyguardStateController.isKeyguardGoingAway()) && !mSimLocked) {
|
||||
if ((mKeyguardStateController.canDismissLockScreen()
|
||||
|| !mKeyguardStateController.isShowing()
|
||||
|| mKeyguardStateController.isKeyguardGoingAway()
|
||||
|| mKeyguardStateController.isKeyguardFadingAway()) && !mSimLocked) {
|
||||
return STATE_LOCK_OPEN;
|
||||
} else if (mTransientBiometricsError) {
|
||||
return STATE_BIOMETRICS_ERROR;
|
||||
|
||||
Reference in New Issue
Block a user