Loading packages/CarSystemUI/src/com/android/systemui/statusbar/car/CarStatusBar.java +2 −1 Original line number Diff line number Diff line Loading @@ -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); } } Loading Loading
packages/CarSystemUI/src/com/android/systemui/statusbar/car/CarStatusBar.java +2 −1 Original line number Diff line number Diff line Loading @@ -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); } } Loading