Loading packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java +301 −199 File changed.Preview size limit exceeded, changes collapsed. Show changes packages/SystemUI/src/com/android/systemui/statusbar/NotificationViewHierarchyManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -140,7 +140,7 @@ public class NotificationViewHierarchyManager implements DynamicPrivacyControlle boolean hideMedia = Utils.useQsMediaPlayer(mContext); if (ent.isRowDismissed() || ent.isRowRemoved() || (ent.isMediaNotification() && hideMedia) || mBubbleController.isBubbleNotificationSuppressedFromShade(ent.getKey())) { || mBubbleController.isBubbleNotificationSuppressedFromShade(ent)) { // we don't want to update removed notifications because they could // temporarily become children if they were isolated before. continue; Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/NotifCollection.java +9 −0 Original line number Diff line number Diff line Loading @@ -214,6 +214,7 @@ public class NotifCollection implements Dumpable { private void onNotificationRankingUpdate(RankingMap rankingMap) { Assert.isMainThread(); applyRanking(rankingMap); dispatchNotificationRankingUpdate(rankingMap); rebuildList(); } Loading Loading @@ -393,6 +394,14 @@ public class NotifCollection implements Dumpable { mAmDispatchingToOtherCode = false; } private void dispatchNotificationRankingUpdate(RankingMap map) { mAmDispatchingToOtherCode = true; for (NotifCollectionListener listener : mNotifCollectionListeners) { listener.onRankingUpdate(map); } mAmDispatchingToOtherCode = false; } private void dispatchOnEntryRemoved( NotificationEntry entry, @CancellationReason int reason, Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/notifcollection/NotifCollectionListener.java +9 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.systemui.statusbar.notification.collection.notifcollection; import android.service.notification.NotificationListenerService; import com.android.systemui.statusbar.notification.collection.NotifCollection; import com.android.systemui.statusbar.notification.collection.NotifCollection.CancellationReason; import com.android.systemui.statusbar.notification.collection.NotificationEntry; Loading Loading @@ -47,4 +49,11 @@ public interface NotifCollectionListener { @CancellationReason int reason, boolean removedByUser) { } /** * Called whenever the RankingMap is updated by system server. By the time this listener is * called, the Rankings of all entries will have been updated. */ default void onRankingUpdate(NotificationListenerService.RankingMap rankingMap) { } } packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationGroupManager.java +2 −2 Original line number Diff line number Diff line Loading @@ -204,8 +204,8 @@ public class NotificationGroupManager implements OnHeadsUpChangedListener, State } int childCount = 0; boolean hasBubbles = false; for (String key : group.children.keySet()) { if (!getBubbleController().isBubbleNotificationSuppressedFromShade(key)) { for (NotificationEntry entry : group.children.values()) { if (!getBubbleController().isBubbleNotificationSuppressedFromShade(entry)) { childCount++; } else { hasBubbles = true; Loading Loading
packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java +301 −199 File changed.Preview size limit exceeded, changes collapsed. Show changes
packages/SystemUI/src/com/android/systemui/statusbar/NotificationViewHierarchyManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -140,7 +140,7 @@ public class NotificationViewHierarchyManager implements DynamicPrivacyControlle boolean hideMedia = Utils.useQsMediaPlayer(mContext); if (ent.isRowDismissed() || ent.isRowRemoved() || (ent.isMediaNotification() && hideMedia) || mBubbleController.isBubbleNotificationSuppressedFromShade(ent.getKey())) { || mBubbleController.isBubbleNotificationSuppressedFromShade(ent)) { // we don't want to update removed notifications because they could // temporarily become children if they were isolated before. continue; Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/NotifCollection.java +9 −0 Original line number Diff line number Diff line Loading @@ -214,6 +214,7 @@ public class NotifCollection implements Dumpable { private void onNotificationRankingUpdate(RankingMap rankingMap) { Assert.isMainThread(); applyRanking(rankingMap); dispatchNotificationRankingUpdate(rankingMap); rebuildList(); } Loading Loading @@ -393,6 +394,14 @@ public class NotifCollection implements Dumpable { mAmDispatchingToOtherCode = false; } private void dispatchNotificationRankingUpdate(RankingMap map) { mAmDispatchingToOtherCode = true; for (NotifCollectionListener listener : mNotifCollectionListeners) { listener.onRankingUpdate(map); } mAmDispatchingToOtherCode = false; } private void dispatchOnEntryRemoved( NotificationEntry entry, @CancellationReason int reason, Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/notifcollection/NotifCollectionListener.java +9 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.systemui.statusbar.notification.collection.notifcollection; import android.service.notification.NotificationListenerService; import com.android.systemui.statusbar.notification.collection.NotifCollection; import com.android.systemui.statusbar.notification.collection.NotifCollection.CancellationReason; import com.android.systemui.statusbar.notification.collection.NotificationEntry; Loading Loading @@ -47,4 +49,11 @@ public interface NotifCollectionListener { @CancellationReason int reason, boolean removedByUser) { } /** * Called whenever the RankingMap is updated by system server. By the time this listener is * called, the Rankings of all entries will have been updated. */ default void onRankingUpdate(NotificationListenerService.RankingMap rankingMap) { } }
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationGroupManager.java +2 −2 Original line number Diff line number Diff line Loading @@ -204,8 +204,8 @@ public class NotificationGroupManager implements OnHeadsUpChangedListener, State } int childCount = 0; boolean hasBubbles = false; for (String key : group.children.keySet()) { if (!getBubbleController().isBubbleNotificationSuppressedFromShade(key)) { for (NotificationEntry entry : group.children.values()) { if (!getBubbleController().isBubbleNotificationSuppressedFromShade(entry)) { childCount++; } else { hasBubbles = true; Loading