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