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

Commit 08d7cc4e authored by Matías Hernández's avatar Matías Hernández
Browse files

When deactivating multiple modes, do so in reverse order of priority

The important part is that the highest-priority mode gets deactivated last. This has two positive results:
* The icon will in the tile and status bar won't rapidly update while the modes are being deactivated.
* If the Modes Tile ever uses the "last manually used mode" as the quick mode, it will be the highest-priority mode (the one that was previously shown) instead of a random one.

Bug: 405988332
Test: atest ZenModeInteractorTest
Flag: android.app.modes_ui_tile_reactivates_last
Change-Id: Id8b800cdc08fbafaba436ec72efb7b93a078e9a4
parent 1caf584c
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