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

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

Merge "Call mutate on notification shade drawable before editing."

parents 8f4feaf0 0b7e45eb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1073,9 +1073,10 @@ public class CarStatusBar extends StatusBar implements
            // shade is visible to the user. When the notification shade is completely open then
            // alpha value will be 1.
            float alpha = (float) height / mNotificationView.getHeight();
            Drawable background = mNotificationView.getBackground();
            Drawable background = mNotificationView.getBackground().mutate();

            background.setAlpha((int) (alpha * 255));
            mNotificationView.setBackground(background);
        }
    }