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,9 +337,11 @@ public class PipTouchHandler {
mMotionHelper.synchronizePinnedStackBounds(); mMotionHelper.synchronizePinnedStackBounds();
reloadResources(); reloadResources();
if (mPipTaskOrganizer.isInPip()) {
// Recreate the dismiss target for the new orientation. // Recreate the dismiss target for the new orientation.
mPipDismissTargetHandler.createOrUpdateDismissTarget(); mPipDismissTargetHandler.createOrUpdateDismissTarget();
} }
}
public void onImeVisibilityChanged(boolean imeVisible, int imeHeight) { public void onImeVisibilityChanged(boolean imeVisible, int imeHeight) {
mIsImeShowing = imeVisible; mIsImeShowing = imeVisible;