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

Commit ed7a778f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Don't update the bubble on ranking changes if it's already in the...

Merge "Don't update the bubble on ranking changes if it's already in the stack" into rvc-dev am: d0c94559

Change-Id: Ie5c6ee20dcff1a619dbeeb683a59d7df7e53a91c
parents af875a13 d0c94559
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -957,9 +957,10 @@ public class BubbleController implements ConfigurationController.ConfigurationLi
            String key = orderedKeys[i];
            NotificationEntry entry = mNotificationEntryManager.getPendingOrActiveNotif(key);
            rankingMap.getRanking(key, mTmpRanking);
            if (mBubbleData.hasBubbleWithKey(key) && !mTmpRanking.canBubble()) {
            boolean isActiveBubble = mBubbleData.hasBubbleWithKey(key);
            if (isActiveBubble && !mTmpRanking.canBubble()) {
                mBubbleData.notificationEntryRemoved(entry, BubbleController.DISMISS_BLOCKED);
            } else if (entry != null && mTmpRanking.isBubble()) {
            } else if (entry != null && mTmpRanking.isBubble() && !isActiveBubble) {
                entry.setFlagBubble(true);
                onEntryUpdated(entry);
            }
+2 −0
Original line number Diff line number Diff line
@@ -233,6 +233,7 @@ public class BubbleData {
                Bubble b = mOverflowBubbles.get(i);
                if (b.getKey().equals(entry.getKey())) {
                    moveOverflowBubbleToPending(b);
                    b.setEntry(entry);
                    return b;
                }
            }
@@ -240,6 +241,7 @@ public class BubbleData {
            for (int i = 0; i < mPendingBubbles.size(); i++) {
                Bubble b = mPendingBubbles.get(i);
                if (b.getKey().equals(entry.getKey())) {
                    b.setEntry(entry);
                    return b;
                }
            }