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

Commit 9075ab37 authored by Brad Stenning's avatar Brad Stenning Committed by android-build-merger
Browse files

DO NOT MERGE Call mutate on notification shade drawable before editing.

am: 8650f411

Change-Id: I3606b5b040b60fb742862566365a43101cdeeaed
parents 00c3767c 8650f411
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1148,9 +1148,10 @@ public class CarStatusBar extends StatusBar implements CarBatteryController.Batt
            // 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);
        }
    }