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

Commit 5598a336 authored by Nicolo' Mazzucato's avatar Nicolo' Mazzucato
Browse files

Load TYPE_RESOURCE icons using per-display context (for system icons)

Before this change, if the res package was "android", we were always getting the drawable from Resources.getSystem() (which are associated to the default display).

After this change, we're using resources associated with the context provided to the Icon.

This should be always correct as the package name is get from the context.

Bug: 404242315
Test: show statusbar in multiple displays, change density of the default one, verify icons on the other displays don't change
Flag: com.android.systemui.shared.status_bar_connected_displays
Flag: com.android.graphics.flags.use_resources_from_context_to_create_drawable_icons
Change-Id: I9a89d75769dfc5157953f748fdae1d71717e7414
parent d97f841e
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