summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Liran Binyamin <liranb@google.com> 2023-11-30 10:05:41 -0500
committer Liran Binyamin <liranb@google.com> 2023-11-30 15:26:14 +0000
commitb6c5c294b3f1348b2a2fc624695aeedaef74ed26 (patch)
treedbf45ac6055aff24fecc5a8526eb48b2387fa545 /libs/input/PointerController.cpp
parent9ebdd206b5d5547348b757435e0d59eb62af129d (diff)
Fix bubble manage menu position after rotation
The orientationChangedListener is trying to reopen the menu after rotation but there are 2 issues that prevent the manage menu from reopening correctly: 1. onDisplaySizeChanged may be called after we try to show the menu, which resets it 2. the manage menu position depends on the position of the manage button, which needs a layout pass to recalculate after rotation This change updates onDisplaySizeChanged to re-show the menu if needed and posts it to the looper. Fixes: 311498135 Test: Manual - Create bubble and expand it - Open the manage menu - Rotate the device - Observe that the menu is positioned correctly after rotation Change-Id: I41142bdac67daac372192f90e9399c722dfd228e
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions