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

Commit 31c417e8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Propagate scrim alpha to LightBarController"

parents 0b203b12 6afae370
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