Merge "Don't add a dismiss target to WM if we're not in PiP." into tm-qpr-dev

This commit is contained in:
Mateusz Cicheński
2023-01-18 00:14:49 +00:00
committed by Android (Google) Code Review

View File

@@ -337,8 +337,10 @@ public class PipTouchHandler {
mMotionHelper.synchronizePinnedStackBounds();
reloadResources();
// Recreate the dismiss target for the new orientation.
mPipDismissTargetHandler.createOrUpdateDismissTarget();
if (mPipTaskOrganizer.isInPip()) {
// Recreate the dismiss target for the new orientation.
mPipDismissTargetHandler.createOrUpdateDismissTarget();
}
}
public void onImeVisibilityChanged(boolean imeVisible, int imeHeight) {