summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/SettingsProvider/res/values/defaults.xml3
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java4
2 files changed, 2 insertions, 5 deletions
diff --git a/packages/SettingsProvider/res/values/defaults.xml b/packages/SettingsProvider/res/values/defaults.xml
index 9ecbfdd..72f30f3 100644
--- a/packages/SettingsProvider/res/values/defaults.xml
+++ b/packages/SettingsProvider/res/values/defaults.xml
@@ -229,9 +229,6 @@
<!-- Default for Settings.Secure.NFC_PAYMENT_COMPONENT -->
<string name="def_nfc_payment_component"></string>
- <!-- Default for Settings.System.STATUS_BAR_NOTIF_COUNT. -->
- <integer name="def_notif_count">0</integer>
-
<!-- Default protected sms originating address values of Settings.Secure.PROTECTED_SMS_ADDRESSES -->
<string-array name="def_protected_sms_list_values"></string-array>
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);