Loading core/java/android/service/notification/StatusBarNotification.java +12 −2 Original line number Diff line number Diff line Loading @@ -143,8 +143,18 @@ public class StatusBarNotification implements Parcelable { * Returns true if this notification is part of a group. */ public boolean isGroup() { if (overrideGroupKey != null || getNotification().getGroup() != null || getNotification().getSortKey() != null) { if (overrideGroupKey != null || isAppGroup()) { return true; } return false; } /** * Returns true if application asked that this notification be part of a group. * @hide */ public boolean isAppGroup() { if (getNotification().getGroup() != null || getNotification().getSortKey() != null) { return true; } return false; Loading packages/ExtServices/src/android/ext/services/notification/Ranker.java +1 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,7 @@ public final class Ranker extends NotificationRankerService { if (DEBUG) Log.i(TAG, "POSTED " + sbn.getKey()); try { List<String> notificationsToBundle = new ArrayList<>(); if (!sbn.isGroup()) { if (!sbn.isAppGroup()) { // Not grouped by the app, add to the list of notifications for the app; // send bundling update if app exceeds the autobundling limit. synchronized (mUnbundledNotifications) { Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +1 −1 Original line number Diff line number Diff line Loading @@ -2948,7 +2948,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, } public void topAppWindowChanged(boolean showMenu) { if (DEBUG) { if (SPEW) { Log.d(TAG, (showMenu?"showing":"hiding") + " the MENU button"); } if (mNavigationBarView != null) { Loading services/core/java/com/android/server/notification/NotificationRecord.java +3 −0 Original line number Diff line number Diff line Loading @@ -176,6 +176,9 @@ public final class NotificationRecord { mRankingTimeMs = calculateRankingTimeMs(previous.getRankingTimeMs()); mCreationTimeMs = previous.mCreationTimeMs; mVisibleSinceMs = previous.mVisibleSinceMs; if(previous.sbn.getOverrideGroupKey() != null) { sbn.setOverrideGroupKey(previous.sbn.getOverrideGroupKey()); } // Don't copy importance information or mGlobalSortKey, recompute them. } Loading Loading
core/java/android/service/notification/StatusBarNotification.java +12 −2 Original line number Diff line number Diff line Loading @@ -143,8 +143,18 @@ public class StatusBarNotification implements Parcelable { * Returns true if this notification is part of a group. */ public boolean isGroup() { if (overrideGroupKey != null || getNotification().getGroup() != null || getNotification().getSortKey() != null) { if (overrideGroupKey != null || isAppGroup()) { return true; } return false; } /** * Returns true if application asked that this notification be part of a group. * @hide */ public boolean isAppGroup() { if (getNotification().getGroup() != null || getNotification().getSortKey() != null) { return true; } return false; Loading
packages/ExtServices/src/android/ext/services/notification/Ranker.java +1 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,7 @@ public final class Ranker extends NotificationRankerService { if (DEBUG) Log.i(TAG, "POSTED " + sbn.getKey()); try { List<String> notificationsToBundle = new ArrayList<>(); if (!sbn.isGroup()) { if (!sbn.isAppGroup()) { // Not grouped by the app, add to the list of notifications for the app; // send bundling update if app exceeds the autobundling limit. synchronized (mUnbundledNotifications) { Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +1 −1 Original line number Diff line number Diff line Loading @@ -2948,7 +2948,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, } public void topAppWindowChanged(boolean showMenu) { if (DEBUG) { if (SPEW) { Log.d(TAG, (showMenu?"showing":"hiding") + " the MENU button"); } if (mNavigationBarView != null) { Loading
services/core/java/com/android/server/notification/NotificationRecord.java +3 −0 Original line number Diff line number Diff line Loading @@ -176,6 +176,9 @@ public final class NotificationRecord { mRankingTimeMs = calculateRankingTimeMs(previous.getRankingTimeMs()); mCreationTimeMs = previous.mCreationTimeMs; mVisibleSinceMs = previous.mVisibleSinceMs; if(previous.sbn.getOverrideGroupKey() != null) { sbn.setOverrideGroupKey(previous.sbn.getOverrideGroupKey()); } // Don't copy importance information or mGlobalSortKey, recompute them. } Loading