Merge "Account for OHM offset before possibly hiding the PIP menu" into sc-dev

This commit is contained in:
Jorge Gil
2021-03-31 22:18:53 +00:00
committed by Android (Google) Code Review

View File

@@ -441,7 +441,7 @@ public class PipResizeGestureHandler {
mDownPoint.set(x, y);
mDownBounds.set(mPipBoundsState.getBounds());
}
if (!currentPipBounds.contains((int) ev.getX(), (int) ev.getY())
if (!currentPipBounds.contains((int) x, (int) y)
&& mPhonePipMenuController.isMenuVisible()) {
mPhonePipMenuController.hideMenu();
}