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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15001386

Change-Id: I784a90cb3c34da81ec5840a0b3996c24c7ca0d32
This commit is contained in:
Ben Lin
2021-06-17 23:30:38 +00:00
committed by Automerger Merge Worker

View File

@@ -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);
}