Merge "Align PIP menu after rotation" into sc-dev

This commit is contained in:
Jorge Gil
2021-02-17 22:41:00 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 1 deletions

View File

@@ -978,7 +978,8 @@ public class PipTaskOrganizer implements ShellTaskOrganizer.TaskListener,
finishResizeForMenu(destinationBounds);
}
private void finishResizeForMenu(Rect destinationBounds) {
/** Moves the PiP menu to the destination bounds. */
public void finishResizeForMenu(Rect destinationBounds) {
mPipMenuController.movePipMenu(null, null, destinationBounds);
mPipMenuController.updateMenuBounds(destinationBounds);
}

View File

@@ -552,6 +552,7 @@ public class PipController implements PipTransitionController.PipTransitionCallb
// mTouchHandler would rely on the bounds populated from mPipTaskOrganizer
mPipTaskOrganizer.onMovementBoundsChanged(outBounds, fromRotation, fromImeAdjustment,
fromShelfAdjustment, wct);
mPipTaskOrganizer.finishResizeForMenu(outBounds);
mTouchHandler.onMovementBoundsChanged(mTmpInsetBounds, mPipBoundsState.getNormalBounds(),
outBounds, fromImeAdjustment, fromShelfAdjustment, rotation);
}