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