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

Commit 6fc4d0c9 authored by Lyn's avatar Lyn
Browse files

Suppress HUNs after avalanche, with allowlist

VisualInterruptionDecisionProviderImpl:
    Add BroadcastDispatcher to register broadcast receiver
    that updates avalanche info in AvalancheProvider

CommonVisualInterruptionSuppressors:
    Add AvalancheSuppressor

Fixes: 322060786
Test: VisualInterruptionDecisionProviderImplTest
Test: enable flags

adb shell device_config override systemui com.android.systemui.visual_interruptions_refactor true

adb shell device_config override systemui com.android.systemui.notification_avalanche_suppression true

Allowlist:
Conversation after avalanche time
High priority conversation from any time
CallStyles
CATEGORY_REMINDER
CATEGORY_EVENT
FSI with permission on
Colorized

HUNs not in the allowlist are suppressed for two minutes after:
Turning phone ON
Turning airplane mode OFF
Turning work profile ON
Switching user

Flag: ACONFIG notification_avalanche_suppression DEVELOPMENT
Change-Id: I86314c3df4e8d079bffbe8489a5474a1e984dc68
parent 6561d91e
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