Merge "Fixed an issue where the scrim could be lost" into nyc-dev am: 05d61edeb2
am: 8ff4c0408d
* commit '8ff4c0408d3b1259d3b6f1d9185989817f65a04d':
Fixed an issue where the scrim could be lost
Change-Id: I5a8e87b9b49a195075370c0475e0695f21cdb6fd
This commit is contained in:
@@ -344,8 +344,8 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener,
|
||||
if (mOnAnimationFinished != null) {
|
||||
mOnAnimationFinished.run();
|
||||
mOnAnimationFinished = null;
|
||||
mKeyguardFadingOutInProgress = false;
|
||||
}
|
||||
mKeyguardFadingOutInProgress = false;
|
||||
scrim.setTag(TAG_KEY_ANIM, null);
|
||||
scrim.setTag(TAG_KEY_ANIM_TARGET, null);
|
||||
}
|
||||
@@ -384,10 +384,11 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener,
|
||||
|
||||
private void endAnimateKeyguardFadingOut(boolean force) {
|
||||
mAnimateKeyguardFadingOut = false;
|
||||
if ((force || (!isAnimating(mScrimInFront) && !isAnimating(mScrimBehind)))
|
||||
&& mOnAnimationFinished != null) {
|
||||
mOnAnimationFinished.run();
|
||||
mOnAnimationFinished = null;
|
||||
if (force || (!isAnimating(mScrimInFront) && !isAnimating(mScrimBehind))) {
|
||||
if (mOnAnimationFinished != null) {
|
||||
mOnAnimationFinished.run();
|
||||
mOnAnimationFinished = null;
|
||||
}
|
||||
mKeyguardFadingOutInProgress = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user