Fix bubbles behavior in bedtime mode

Bug: 185083022
Test: atest SystemUITests
Test: screen recording https://drive.google.com/file/d/1jGHUaGoqtJIFcK439ZFBke_TKKdAGbKL/view?usp=sharing
Change-Id: Ida14930e50fb41bc5e2809b2b3127bb581a3bac0
This commit is contained in:
Sergey Serokurov
2021-11-09 20:42:16 -08:00
parent db38b7faf4
commit 1516eb0a39

View File

@@ -1036,10 +1036,9 @@ public class BubbleController {
// notification, so that the bubble will be re-created if shouldBubbleUp returns
// true.
mBubbleData.dismissBubbleWithKey(key, DISMISS_NO_BUBBLE_UP);
} else if (entry != null && mTmpRanking.isBubble() && !isActiveBubble
&& !entry.getRanking().isSuspended()) {
} else if (entry != null && mTmpRanking.isBubble() && !isActiveBubble) {
entry.setFlagBubble(true);
onEntryUpdated(entry, true /* shouldBubbleUp */);
onEntryUpdated(entry, shouldBubbleUp && !entry.getRanking().isSuspended());
}
}
}