diff options
| author | 2022-05-13 10:22:47 -0700 | |
|---|---|---|
| committer | 2022-05-17 10:40:41 -0700 | |
| commit | 271f4fca0100908be04a56f1c8eba63103ceb8dd (patch) | |
| tree | 1c7fc8af0ee0ba461d076cb514eee1f064feb0be /libs/androidfw/StringPool.cpp | |
| parent | d837d55a3d4a0362af9df0b1d95b42b271bf04e8 (diff) | |
Fix duplicate-call issues in remote-display-change
The display-change code was just accumulating callbacks without
ever removing them. This is both a memory leak and was calling
stale callbacks which yielded out-of-order changes.
Additionally, it was calling all callbacks for each individual
callback received (meaning the first of 2 in-flight remotes
would call both callbacks before the second was received). This
meant that the transactions were being used in the wrong
callbacks and that some callbacks would be called out-of-order.
Lastly, the display-rotation failure-case was wrong. Its supposed
to fall-back on the new rotation not the original rotation.
Bug: 232477270
Test: atest PinnedStackTests -- shouldn't crash due to
rotation-outside-of-transition anymore.
Change-Id: Icc7a90448edb648a8110cd83018a1477111beedd
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions