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

Commit a4000096 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Prevent windows from dimming if host is going away" into main

parents d4e59948 bd9a8433
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -218,6 +218,11 @@ class Dimmer {
     */
    protected void adjustAppearance(@NonNull WindowState dimmingContainer,
                                    float alpha, int blurRadius) {
        if (!mHost.isVisibleRequested()) {
            // If the host is already going away, there is no point in keeping dimming
            return;
        }

        if (mDimState != null || (alpha != 0 || blurRadius != 0)) {
            final DimState d = obtainDimState(dimmingContainer);
            d.prepareLookChange(alpha, blurRadius);