Merge "Prevent double animation of lockicon when waking."
This commit is contained in:
@@ -39,6 +39,12 @@ public interface StatusBarStateController {
|
||||
*/
|
||||
boolean isDozing();
|
||||
|
||||
|
||||
/**
|
||||
* Is device pulsing.
|
||||
*/
|
||||
boolean isPulsing();
|
||||
|
||||
/**
|
||||
* Adds a state listener
|
||||
*/
|
||||
|
||||
@@ -177,6 +177,11 @@ public class StatusBarStateControllerImpl implements SysuiStatusBarStateControll
|
||||
return mIsDozing;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPulsing() {
|
||||
return mPulsing;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getDozeAmount() {
|
||||
return mDozeAmount;
|
||||
|
||||
@@ -214,7 +214,6 @@ public final class DozeServiceHost implements DozeHost {
|
||||
dozing = false;
|
||||
}
|
||||
|
||||
|
||||
mStatusBarStateController.setIsDozing(dozing);
|
||||
}
|
||||
|
||||
|
||||
@@ -76,7 +76,6 @@ public class LockscreenLockIconController {
|
||||
private boolean mKeyguardShowing;
|
||||
private boolean mKeyguardJustShown;
|
||||
private boolean mBlockUpdates;
|
||||
private boolean mDozing;
|
||||
private boolean mSimLocked;
|
||||
private boolean mTransientBiometricsError;
|
||||
private boolean mDocked;
|
||||
@@ -452,7 +451,8 @@ public class LockscreenLockIconController {
|
||||
shouldUpdate = false;
|
||||
}
|
||||
if (shouldUpdate && mLockIcon != null) {
|
||||
mLockIcon.update(state, mDozing, mKeyguardJustShown);
|
||||
mLockIcon.update(state,
|
||||
mStatusBarStateController.isDozing(), mKeyguardJustShown);
|
||||
}
|
||||
mLastState = state;
|
||||
mKeyguardJustShown = false;
|
||||
@@ -480,7 +480,6 @@ public class LockscreenLockIconController {
|
||||
}
|
||||
|
||||
private void setDozing(boolean isDozing) {
|
||||
mDozing = isDozing;
|
||||
update();
|
||||
}
|
||||
|
||||
@@ -495,7 +494,7 @@ public class LockscreenLockIconController {
|
||||
* @return true if the visibility changed
|
||||
*/
|
||||
private boolean updateIconVisibility() {
|
||||
boolean onAodOrDocked = mDozing || mDocked;
|
||||
boolean onAodOrDocked = mStatusBarStateController.isDozing() && mDocked;
|
||||
boolean invisible = onAodOrDocked || mWakeAndUnlockRunning || mShowingLaunchAffordance;
|
||||
if (mKeyguardBypassController.getBypassEnabled() && !mBouncerShowingScrimmed) {
|
||||
if ((mHeadsUpManagerPhone.isHeadsUpGoingAway()
|
||||
|
||||
Reference in New Issue
Block a user