Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b6c5c294 authored by Liran Binyamin's avatar Liran Binyamin
Browse files

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
parent 9ebdd206
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment