diff options
author | Zhao Wei Liew <zhaoweiliew@gmail.com> | 2016-12-23 20:44:33 +0800 |
---|---|---|
committer | Zhao Wei Liew <zhaoweiliew@gmail.com> | 2016-12-23 20:44:33 +0800 |
commit | 4b4e8b379c8f57895fda5ee14528b72910dfb414 (patch) | |
tree | 3fd535bad43a7537502fb1f7e0c5c86bf7d8d03f | |
parent | e103f5b6279ef351e614f6ac34085597d2e75b2f (diff) | |
download | frameworks_base-4b4e8b379c8f57895fda5ee14528b72910dfb414.zip frameworks_base-4b4e8b379c8f57895fda5ee14528b72910dfb414.tar.gz frameworks_base-4b4e8b379c8f57895fda5ee14528b72910dfb414.tar.bz2 |
StatusBarIconView: Enable notification icon count by default
This used to be enabled by default in previous releases.
Change-Id: I24766bed58d081a0dd4763b9602379ff6435e092
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java index 4371cce..857cb08 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java @@ -90,7 +90,7 @@ public class StatusBarIconView extends AnimatedImageView { public void setNotification(Notification notification) { mNotification = notification; mShowNotificationCount = CMSettings.System.getIntForUser(mContext.getContentResolver(), - CMSettings.System.STATUS_BAR_NOTIF_COUNT, 0, UserHandle.USER_CURRENT) == 1; + CMSettings.System.STATUS_BAR_NOTIF_COUNT, 1, UserHandle.USER_CURRENT) == 1; setContentDescription(notification); } @@ -388,7 +388,7 @@ public class StatusBarIconView extends AnimatedImageView { @Override public void update() { boolean showIconCount = CMSettings.System.getIntForUser(mContext.getContentResolver(), - CMSettings.System.STATUS_BAR_NOTIF_COUNT, 0, UserHandle.USER_CURRENT) == 1; + CMSettings.System.STATUS_BAR_NOTIF_COUNT, 1, UserHandle.USER_CURRENT) == 1; for (StatusBarIconView sbiv : mIconViews) { sbiv.mShowNotificationCount = showIconCount; sbiv.set(sbiv.mIcon, true); |