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

Commit 1d4e1ab1 authored by Caitlin Shkuratov's avatar Caitlin Shkuratov
Browse files

[SB] Rework chip visibility & notification icon visibility with HUNs.

I noticed a few problems:
 - With StatusBarNoHunBehavior flag off, if you have a chip and then get
   a HUN then we weren't showing the HUN's notification icon because
   `isAnyChipVisible` was `true`.
 - With StatusBarNoHunBehavior flag on, then tapping the chip to show
   the HUN would hide the chip because there was a pinned HUN.

This reworks the flows to address both of these problems.

Bug: 364653005
Flag: com.android.systemui.status_bar_no_hun_behavior
Flag: com.android.systemui.status_bar_root_modernization

Test: NoHunBehavior off: Verify status bar updates to show HUN icon &
text if you have a chip AND if you don't have a chip
Test: NoHunBeahvior on: Verify status bar always shows clock & chip,
even if there's a chip HUN showing or a non-chip HUN showing

Test: atest HomeStatusBarViewModelTest
Change-Id: Ie58ebbc9ad021f9e33b1280c4cbbc4d146b31e23
parent bc85e45d
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