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

Commit 3b6832b3 authored by Liran Binyamin's avatar Liran Binyamin
Browse files

Fix manage menu position after rotation

If the manage menu is shown after rotation, post it to the looper
to make sure the position is correct.

Bug: 311498135
Test: Manual -- repeatedly rotate and observe menu position
Change-Id: I9bf9e66637452823f8be538b5b253f3000b574ce
parent 6ea41f31
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1023,7 +1023,13 @@ public class BubbleStackView extends FrameLayout
                        updateOverflowVisibility();
                        updatePointerPosition(false);
                        requestUpdate();
                        showManageMenu(mShowingManage);
                        if (mShowingManage) {
                            // if we're showing the menu after rotation, post it to the looper
                            // to make sure that the location of the menu button is correct
                            post(() -> showManageMenu(true));
                        } else {
                            showManageMenu(false);
                        }

                        PointF p = mPositioner.getExpandedBubbleXY(getBubbleIndex(mExpandedBubble),
                                getState());