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

Commit f46fba37 authored by Caitlin Shkuratov's avatar Caitlin Shkuratov
Browse files

[SB][Notifs] Only show 1 notif chip per-package, regardless of UID

We never want the status bar notification chips to show the same app
icon in two different chips, so limit the notification chips to 1 per
package, regardless of UID. This does mean that if you have a promoted
notification for both your personal profile and your work profile, only
one of those will show up as a chip (whichever app was more recently
opened).

Fixes: 397442330
Bug: 364653005
Flag: android.app.ui_rich_ongoing

Test: Post 2 colorized notifications from test app -> verify status bar
only shows 1 chip, but shade still shows both notifications. Verify
status bar chip is for the first notif in the shade
Test: Post 2 promoted notifs from different apps -> verify 2 chips
appear
Test: Post promoted notif from same app on two different profiles ->
verify *only one chip appears*
Test: atest NotifChipsViewModelTest

Change-Id: Ifebe3e69ff058de1cbbc93c197832d7e0e4a23f6
parent bff5e29f
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