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
1 file changed