* commit 'b946ce96d2f761550e7b30286846771fa3beb74d': Fix window animation flickering
This commit is contained in:
@@ -500,7 +500,13 @@ public class WindowAnimator {
|
|||||||
mPostKeyguardExitAnimation.getStartOffset(),
|
mPostKeyguardExitAnimation.getStartOffset(),
|
||||||
mPostKeyguardExitAnimation.getDuration());
|
mPostKeyguardExitAnimation.getDuration());
|
||||||
mKeyguardGoingAway = false;
|
mKeyguardGoingAway = false;
|
||||||
} else if (mPostKeyguardExitAnimation.hasEnded()) {
|
}
|
||||||
|
// mPostKeyguardExitAnimation might either be ended normally, cancelled, or "orphaned",
|
||||||
|
// meaning that the window it was running on was removed. We check for hasEnded() for
|
||||||
|
// ended normally and cancelled case, and check the time for the "orphaned" case.
|
||||||
|
else if (mPostKeyguardExitAnimation.hasEnded()
|
||||||
|
|| mCurrentTime - mPostKeyguardExitAnimation.getStartTime()
|
||||||
|
> mPostKeyguardExitAnimation.getDuration()) {
|
||||||
// Done with the animation, reset.
|
// Done with the animation, reset.
|
||||||
if (DEBUG_KEYGUARD) Slog.v(TAG, "Done with Keyguard exit animations.");
|
if (DEBUG_KEYGUARD) Slog.v(TAG, "Done with Keyguard exit animations.");
|
||||||
mPostKeyguardExitAnimation = null;
|
mPostKeyguardExitAnimation = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user