diff options
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java | 9 |
1 files changed, 8 insertions, 1 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 450fdd9..c3719d4 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java @@ -83,6 +83,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, private int mPinnedHeadsUpCount; private float mTopHeadsUpDragAmount; private View mDraggedHeadsUpView; + private boolean mForceHideScrims; public ScrimController(ScrimView scrimBehind, ScrimView scrimInFront, View headsUpScrim, boolean scrimSrcEnabled) { @@ -176,7 +177,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, } private void updateScrims() { - if (mAnimateKeyguardFadingOut) { + if (mAnimateKeyguardFadingOut || mForceHideScrims) { setScrimInFrontColor(0f); setScrimBehindColor(0f); } else if (!mKeyguardShowing && !mBouncerShowing) { @@ -440,4 +441,10 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, expandFactor = Math.max(expandFactor, 0.0f); return alpha * expandFactor; } + + public void forceHideScrims(boolean hide) { + mForceHideScrims = hide; + mAnimateChange = false; + scheduleUpdate(); + } } |