Merge "Don't delay frame scheduling" into rvc-d1-dev am: 4185609ba9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12099101 Change-Id: Id20930de15c534ff477e0785e611510c790f4c99
This commit is contained in:
@@ -348,10 +348,8 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, OnCo
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (mKeyguardUpdateMonitor.needsSlowUnlockTransition() && mState == ScrimState.UNLOCKED) {
|
if (mKeyguardUpdateMonitor.needsSlowUnlockTransition() && mState == ScrimState.UNLOCKED) {
|
||||||
// In case the user isn't unlocked, make sure to delay a bit because the system is hosed
|
|
||||||
// with too many things at this case, in order to not skip the initial frames.
|
|
||||||
mScrimInFront.postOnAnimationDelayed(this::scheduleUpdate, 16);
|
|
||||||
mAnimationDelay = StatusBar.FADE_KEYGUARD_START_DELAY;
|
mAnimationDelay = StatusBar.FADE_KEYGUARD_START_DELAY;
|
||||||
|
scheduleUpdate();
|
||||||
} else if ((!mDozeParameters.getAlwaysOn() && oldState == ScrimState.AOD)
|
} else if ((!mDozeParameters.getAlwaysOn() && oldState == ScrimState.AOD)
|
||||||
|| (mState == ScrimState.AOD && !mDozeParameters.getDisplayNeedsBlanking())) {
|
|| (mState == ScrimState.AOD && !mDozeParameters.getDisplayNeedsBlanking())) {
|
||||||
// Scheduling a frame isn't enough when:
|
// Scheduling a frame isn't enough when:
|
||||||
|
|||||||
Reference in New Issue
Block a user