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

Commit 7b262506 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent 0d7a87f8
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