Distinguish window configuration for different tokens
If a ResourcesImpl is only used by one activity, it can be reused for a pure WindowConfiguration change. But if there are other activities sharing the ResourcesImpl, a new ResourcesImpl should be created for the change. For example, 2 activities have the same size and position: Activity1 -> ResourcesImplA bounds(0,0,100,200) Activity2 -> ResourcesImplA bounds(0,0,100,200) If Activity2 changed position, it should have its own resources: Activity1 -> ResourcesImplA bounds(0,0,100,200) Activity2 -> ResourcesImplB bounds(10,10,110,210) Also update all Configuration of reused ResourcesImpl to make its values the same as using ResourcesManager#createResourcesImpl. Bug: 413273054 Flag: android.content.res.ignore_non_public_config_diff_for_resources_key Test: atest FrameworksCoreTests:ResourcesManagerTest Change-Id: I96520a3b31b696cc4d2808866e7ab757beededda
Loading
Please register or sign in to comment