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

Skip to content
Commit fb020458 authored by Matías Hernández's avatar Matías Hernández
Browse files

(Almost) display active priority mode icon in status bar

This updates StatusBarIconController, StatusBarIcon, and StatusBarIconView to support:
* resources from non-system packages.
* preloaded drawables for said resources (in case an existing cache exists, as in the case of modes).

Some things are pending:
* Icons are not the correct ones for "special" modes (Do Not Disturb shows the TYPE_OTHER icon). This needs some (relatively minor) changes in ZenIconLoader & friends.
* Preloaded icons are not tinted correctly on theme changes.
* Resource-id icons are tinted correctly, but arbitrarily-sized ones are not resized correctly. ¯\_(ツ)_/¯

Bug: 360399800
Test: atest StatusBarIconControllerImplTest PhoneStatusBarPolicyTest StatusBarIconViewTest StatusBarIconTest
Flag: android.app.modes_ui
Change-Id: I3fc3815895953c401c426d6eebcb9e4c83c95726
parent 14fcc462
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