Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java +14 −1 Original line number Diff line number Diff line Loading @@ -533,7 +533,10 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump private void handleBlurSupportedChanged(boolean isBlurSupported) { this.mIsBlurSupported = isBlurSupported; if (Flags.bouncerUiRevamp()) { updateDefaultScrimAlphas(); // TODO: animate blur fallback when the bouncer is pulled up. for (ScrimState state : ScrimState.values()) { state.setDefaultScrimAlpha(getDefaultScrimAlpha(true)); } if (isBlurSupported) { ScrimState.BOUNCER_SCRIMMED.setNotifBlurRadius(mBlurConfig.getMaxBlurRadiusPx()); } else { Loading @@ -541,7 +544,17 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump } } if (Flags.notificationShadeBlur()) { float inFrontAlpha = mInFrontAlpha; float behindAlpha = mBehindAlpha; float notifAlpha = mNotificationsAlpha; mState.prepare(mState); applyState(); startScrimAnimation(mScrimBehind, behindAlpha); startScrimAnimation(mNotificationsScrim, notifAlpha); startScrimAnimation(mScrimInFront, inFrontAlpha); dispatchBackScrimState(mScrimBehind.getViewAlpha()); } else if (Flags.bouncerUiRevamp()) { applyAndDispatchState(); } } Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java +14 −1 Original line number Diff line number Diff line Loading @@ -533,7 +533,10 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump private void handleBlurSupportedChanged(boolean isBlurSupported) { this.mIsBlurSupported = isBlurSupported; if (Flags.bouncerUiRevamp()) { updateDefaultScrimAlphas(); // TODO: animate blur fallback when the bouncer is pulled up. for (ScrimState state : ScrimState.values()) { state.setDefaultScrimAlpha(getDefaultScrimAlpha(true)); } if (isBlurSupported) { ScrimState.BOUNCER_SCRIMMED.setNotifBlurRadius(mBlurConfig.getMaxBlurRadiusPx()); } else { Loading @@ -541,7 +544,17 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump } } if (Flags.notificationShadeBlur()) { float inFrontAlpha = mInFrontAlpha; float behindAlpha = mBehindAlpha; float notifAlpha = mNotificationsAlpha; mState.prepare(mState); applyState(); startScrimAnimation(mScrimBehind, behindAlpha); startScrimAnimation(mNotificationsScrim, notifAlpha); startScrimAnimation(mScrimInFront, inFrontAlpha); dispatchBackScrimState(mScrimBehind.getViewAlpha()); } else if (Flags.bouncerUiRevamp()) { applyAndDispatchState(); } } Loading