Merge "PiP: Update menu bounds before showing the menu." into sc-dev

This commit is contained in:
Ben Lin
2021-06-17 23:27:24 +00:00
committed by Android (Google) Code Review

View File

@@ -278,6 +278,10 @@ public class PhonePipMenuController implements PipMenuController {
return; 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, mPipMenuView.showMenu(menuState, stackBounds, allowMenuTimeout, willResizeMenu, withDelay,
showResizeHandle); showResizeHandle);
} }