Loading packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +7 −0 Original line number Diff line number Diff line Loading @@ -1904,6 +1904,13 @@ public abstract class BaseStatusBar extends SystemUI implements } protected boolean shouldInterrupt(StatusBarNotification sbn) { if (mNotificationData.shouldFilterOut(sbn)) { if (DEBUG) { Log.d(TAG, "Skipping HUN check for " + sbn.getKey() + " since it's filtered out."); } return false; } Notification notification = sbn.getNotification(); // some predicates to make the boolean logic legible boolean isNoisy = (notification.defaults & Notification.DEFAULT_SOUND) != 0 Loading packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java +1 −1 Original line number Diff line number Diff line Loading @@ -221,7 +221,7 @@ public class NotificationData { return mGroupsWithSummaries.contains(groupKey); } private boolean shouldFilterOut(StatusBarNotification sbn) { boolean shouldFilterOut(StatusBarNotification sbn) { if (!(mEnvironment.isDeviceProvisioned() || showNotificationEvenIfUnprovisioned(sbn))) { return true; Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +7 −0 Original line number Diff line number Diff line Loading @@ -1904,6 +1904,13 @@ public abstract class BaseStatusBar extends SystemUI implements } protected boolean shouldInterrupt(StatusBarNotification sbn) { if (mNotificationData.shouldFilterOut(sbn)) { if (DEBUG) { Log.d(TAG, "Skipping HUN check for " + sbn.getKey() + " since it's filtered out."); } return false; } Notification notification = sbn.getNotification(); // some predicates to make the boolean logic legible boolean isNoisy = (notification.defaults & Notification.DEFAULT_SOUND) != 0 Loading
packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java +1 −1 Original line number Diff line number Diff line Loading @@ -221,7 +221,7 @@ public class NotificationData { return mGroupsWithSummaries.contains(groupKey); } private boolean shouldFilterOut(StatusBarNotification sbn) { boolean shouldFilterOut(StatusBarNotification sbn) { if (!(mEnvironment.isDeviceProvisioned() || showNotificationEvenIfUnprovisioned(sbn))) { return true; Loading