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

Commit e2a2d16b authored by DvTonder's avatar DvTonder
Browse files

SystemUI: Tweak number of notifications detection method

Change-Id: Ibd46fa5039e1d3062dcdb8f3c4dbd9ec1bdc73b0
parent 1b9117f6
Loading
Loading
Loading
Loading
+5 −8
Original line number Diff line number Diff line
@@ -2617,7 +2617,6 @@ public class PhoneStatusBar extends BaseStatusBar {
        }

        int N = mNotificationData.size();
        int thisUsersNotifications = 0;
        for (int i = 0; i < N; i++) {
            Entry ent = mNotificationData.get(N-i-1);
            if(ent != null
@@ -2628,16 +2627,14 @@ public class PhoneStatusBar extends BaseStatusBar {
                    case com.android.internal.R.drawable.stat_sys_adb:
                        continue;
                }
                thisUsersNotifications++;
                // We have at least one notification, we cannot skip
                return false;
            }
        }
        if(thisUsersNotifications == 0) {
        // No notifications for current user, lets skip to Settings panel
        return true;
    }

        return false;
    }

    private static class FastColorDrawable extends Drawable {
        private final int mColor;