Loading packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java +1 −4 Original line number Diff line number Diff line Loading @@ -226,10 +226,7 @@ public class NotificationShelf extends ActivatableNotificationView implements ? MathUtils.lerp(shortestWidth, getWidth(), fractionToShade) : getWidth(); ActivatableNotificationView anv = (ActivatableNotificationView) this; NotificationBackgroundView bg = anv.getBackgroundNormal(); if (bg != null) { anv.getBackgroundNormal().setActualWidth((int) actualWidth); } anv.setBackgroundWidth((int) actualWidth); if (mShelfIcons != null) { mShelfIcons.setActualLayoutWidth((int) actualWidth); } Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ActivatableNotificationView.java +6 −3 Original line number Diff line number Diff line Loading @@ -163,10 +163,13 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView } /** * @return The background of this view. * @param width The actual width to apply to the background view. */ public NotificationBackgroundView getBackgroundNormal() { return mBackgroundNormal; public void setBackgroundWidth(int width) { if (mBackgroundNormal == null) { return; } mBackgroundNormal.setActualWidth(width); } @Override Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java +1 −4 Original line number Diff line number Diff line Loading @@ -226,10 +226,7 @@ public class NotificationShelf extends ActivatableNotificationView implements ? MathUtils.lerp(shortestWidth, getWidth(), fractionToShade) : getWidth(); ActivatableNotificationView anv = (ActivatableNotificationView) this; NotificationBackgroundView bg = anv.getBackgroundNormal(); if (bg != null) { anv.getBackgroundNormal().setActualWidth((int) actualWidth); } anv.setBackgroundWidth((int) actualWidth); if (mShelfIcons != null) { mShelfIcons.setActualLayoutWidth((int) actualWidth); } Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ActivatableNotificationView.java +6 −3 Original line number Diff line number Diff line Loading @@ -163,10 +163,13 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView } /** * @return The background of this view. * @param width The actual width to apply to the background view. */ public NotificationBackgroundView getBackgroundNormal() { return mBackgroundNormal; public void setBackgroundWidth(int width) { if (mBackgroundNormal == null) { return; } mBackgroundNormal.setActualWidth(width); } @Override Loading