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

Commit 6afae370 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Propagate scrim alpha to LightBarController

Change-Id: I8f89c0ccb5811ce729f04041dc1ff8efa3877991
Fixes: 69895859
Test: Launch settings, chrome, go back to launcher
parent 25c3c34c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -629,6 +629,11 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener,
            }
        }

        // TODO factor mLightBarController out of this class
        if (scrim == mScrimBehind) {
            mLightBarController.setScrimAlpha(alpha);
        }

        final ScrimView scrimView = scrim instanceof  ScrimView ? (ScrimView) scrim : null;
        final boolean wantsAlphaUpdate = alpha != currentAlpha && alpha != animEndValue;
        final boolean wantsTintUpdate = scrimView != null