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
Loading
Please register or sign in to comment