Loading core/java/com/android/internal/widget/NotificationExpandButton.java +8 −3 Original line number Diff line number Diff line Loading @@ -149,9 +149,11 @@ public class NotificationExpandButton extends FrameLayout { setContentDescription(mContext.getText(contentDescriptionId)); mIconView.setImageDrawable(getContext().getDrawable(drawableId)); if (!notificationsRedesignTemplates()) { // changing the expanded state can affect the number display updateNumber(); } } private void updateNumber() { if (shouldShowNumber()) { Loading Loading @@ -189,6 +191,9 @@ public class NotificationExpandButton extends FrameLayout { } private boolean shouldShowNumber() { if (notificationsRedesignTemplates()) { return mNumber > 1; } return !mExpanded && mNumber > 1; } Loading Loading @@ -230,7 +235,7 @@ public class NotificationExpandButton extends FrameLayout { /** * Sets the number shown inside the expand button. * This only appears when the expand button is collapsed, and when greater than 1. * This only appears when {@link this#shouldShowNumber()} is true. */ @RemotableViewMethod public void setNumber(int number) { Loading Loading
core/java/com/android/internal/widget/NotificationExpandButton.java +8 −3 Original line number Diff line number Diff line Loading @@ -149,9 +149,11 @@ public class NotificationExpandButton extends FrameLayout { setContentDescription(mContext.getText(contentDescriptionId)); mIconView.setImageDrawable(getContext().getDrawable(drawableId)); if (!notificationsRedesignTemplates()) { // changing the expanded state can affect the number display updateNumber(); } } private void updateNumber() { if (shouldShowNumber()) { Loading Loading @@ -189,6 +191,9 @@ public class NotificationExpandButton extends FrameLayout { } private boolean shouldShowNumber() { if (notificationsRedesignTemplates()) { return mNumber > 1; } return !mExpanded && mNumber > 1; } Loading Loading @@ -230,7 +235,7 @@ public class NotificationExpandButton extends FrameLayout { /** * Sets the number shown inside the expand button. * This only appears when the expand button is collapsed, and when greater than 1. * This only appears when {@link this#shouldShowNumber()} is true. */ @RemotableViewMethod public void setNumber(int number) { Loading