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

Commit 524bc0a2 authored by Ben Lin's avatar Ben Lin
Browse files

PiP: Update menu bounds before showing the menu.

It is possible that sometimes when PiP menu is not showing, it is not
updated correctly.

Bug: 190210447
Test: Enter PiP
Change-Id: I87639a6d568e96e26d4b79ba68a6349ec0ae29e1
parent 7bb24f63
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -278,6 +278,10 @@ public class PhonePipMenuController implements PipMenuController {
            return;
        }

        // Sync the menu bounds before showing it in case it is out of sync.
        movePipMenu(null /* pipLeash */, null /* transaction */, stackBounds);
        updateMenuBounds(stackBounds);

        mPipMenuView.showMenu(menuState, stackBounds, allowMenuTimeout, willResizeMenu, withDelay,
                showResizeHandle);
    }