diff options
author | Riddle Hsu <riddlehsu@google.com> | 2021-12-13 18:52:54 +0800 |
---|---|---|
committer | Riddle Hsu <riddlehsu@google.com> | 2021-12-13 18:52:54 +0800 |
commit | 778c95ce7c540745bd647ac00b244b8ec044434b (patch) | |
tree | 9fd226808fabbf1228a344c9a0d509f81a2f21a1 /packages/SystemUI/src/com/android/keyguard/LockIconViewController.java | |
parent | 06328c7ada4e91cf09ec3e0b34480e6a91354d86 (diff) |
Reduce cost of WindowTokenClient config change
The SizeConfigurationBuckets was used to avoid activity relaunch
by insignificant configuration change. Because WindowTokenClient
doesn't have relaunch operation, it is unnecessary to use it.
Especially Resources#getSizeConfigurations() is a heavy invocation,
which may create hundreds of temporal Configuration when calling it
in system server.
Also fix leakage of SystemUiContext if it is detached, e.g. the
associated display is removed.
Bug: 207620458
Test: atest WindowContextControllerTest
Change-Id: I8388a2ab25f3deed2e29eb5636c4b2130f4f1b87
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/LockIconViewController.java')
0 files changed, 0 insertions, 0 deletions