Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b4e8b37 authored by Zhao Wei Liew's avatar Zhao Wei Liew
Browse files

StatusBarIconView: Enable notification icon count by default

This used to be enabled by default in previous releases.

Change-Id: I24766bed58d081a0dd4763b9602379ff6435e092
parent e103f5b6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);