summaryrefslogtreecommitdiff
path: root/packages/Shell/src
diff options
context:
space:
mode:
author Kevin Chyn <kchyn@google.com> 2024-11-27 22:13:59 +0000
committer Kevin Chyn <kchyn@google.com> 2024-11-28 01:35:42 +0000
commitd56fb4d66fd52343f8a2ca1cb0207159027a1a49 (patch)
tree3e55c2b2597eb8a7e199514b86d35a96f8cc2bff /packages/Shell/src
parente0a4d1fb24b7efecbfd50aec7bfc1d4b575e1a7a (diff)
Allow same displayId to override DisplayRotationCoordinator callback
There's a chance that the callback is not removed if the onDisplayRemoved call is delayed. This can happen for exmaple if there's an existing animation that has not finished. In this case, let's allow the same displayId to re-register even if the previous removal has not occurred yet. In this case, we also now only allow removal to succeed if the callback that's being removed matches the callback that's registered. Without this, it's possible that the new callback is incorrectly removed by a pending/delayed cleanup of the previous display. Bug: 380427756 Test: atest DisplayRotationCoordinatorTests Test: atest DisplayContentTests Flag: EXEMPT bugfix Change-Id: I6d6240e2ada92c8a0ca7bc50dde074b770cfa662
Diffstat (limited to 'packages/Shell/src')
0 files changed, 0 insertions, 0 deletions