Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9489178a authored by Selim Cinek's avatar Selim Cinek Committed by android-build-merger
Browse files

Merge "Fixed an issue where the scrim could be lost" into nyc-dev am: 05d61ede am: 8ff4c040

am: cf1bfff8

* commit 'cf1bfff8':
  Fixed an issue where the scrim could be lost

Change-Id: I41c6ffba2af17f76a70318c3ff63354b61431427
parents 57c73e4e cf1bfff8
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -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) {
        if (force || (!isAnimating(mScrimInFront) && !isAnimating(mScrimBehind))) {
            if (mOnAnimationFinished != null) {
                mOnAnimationFinished.run();
                mOnAnimationFinished = null;
            }
            mKeyguardFadingOutInProgress = false;
        }
    }