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

Skip to content
Commit 93c3afad authored by Julia Tuttle's avatar Julia Tuttle
Browse files

NotificationInterruptStateProvider: suppress peek/pulse when app suspended

If an app is suspended in focus mode, we should suppress peek and pulse;
otherwise, the notifications may *immediately* peek or pulse when focus
mode ends.

Modify the old NotificationInterruptStateProvider to suppress
interruptions from suspended apps in canAlertCommon (which covers peek,
pulse, and bubble) instead of just shouldBubbleUp.

Note that, despite touching code in the visual interruptions refactor,
this change is *not* related to or flagged by the refactor's feature
flag; this is a long-standing omission in our interruption logic, not a
bug in the refactored code.

Bug: 329620290
Flag: NA
Test: atest NotificationInterruptStateProviderWrapperTest
Change-Id: Icbe9bcbb4ccba4870e42ee51f244cf2e15e095ed
parent 8c0a2a1a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment