diff options
| author | 2016-05-04 11:11:10 -0700 | |
|---|---|---|
| committer | 2016-05-04 19:24:47 -0400 | |
| commit | ca59dc0df59c16d22f9c5ea0f1d2fc79f6b92c6c (patch) | |
| tree | 702df625ad8ce4b6ef75ea7c84ab4a5c90339888 | |
| parent | e85788710a6bff2004ec4d8eb2ddf747a040ee82 (diff) | |
Fixed an issue where the scrim could be lost
When the lockscreen camera was launched, the launch
transition flags were not correctly updated, leading
to the scrim not updating anymore.
Change-Id: Ief5f9eae4d9aacd5177d72e6902451c92552d0d1
Fixes: 28404975
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java index cf5277f26535..dfc816ca15ce 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java @@ -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; } } |