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

Commit acd96548 authored by Jeff DeCew's avatar Jeff DeCew
Browse files

Refactor AppIconProvider to fix bugs

* Instead of taking a context, the provider takes a UserHandle
* The UserHandle is used to internally look up whether the app icon should show the work profile badge
* The skeleton codepath suppresses the work profile badging
Fixes: 416215382

* Renamed internal non-skeleton members to 'standard' for clarity
Fixes: 406484337

* Adds the ability for individual callers of getOrFetchAppIcon to request a different Drawable instance, which resolves an issue where the mutations of the drawable caused by expansion of the compose bundle header would resize the app icon in other notification rows.
* Cache the BitmapInfo across all drawable instances to avoid increased memory cost
Fixes: 420908272

* Validate that single layer app icons appear
Fixes: 422748092

Flag: com.android.systemui.notification_bundle_ui
Flag: android.app.notifications_redesign_app_icons
Test: presubmit
Change-Id: I6d840310b72b30b8265ff4b3852d7fe1e969081e
parent a8efffb2
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