Merge "PiP: Animate resize even if the bounds are the same." into rvc-dev am: 32724409f5 am: 9c1a594951

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

Change-Id: I6bdb7acce966c11848d3b4cfe70a6bf0c74a4608
This commit is contained in:
Ben Lin
2020-06-15 18:02:01 +00:00
committed by Automerger Merge Worker

View File

@@ -491,11 +491,12 @@ public class PipMotionHelper implements PipAppOpsListener.Callback,
Log.d(TAG, "resizeAndAnimatePipUnchecked: toBounds=" + toBounds Log.d(TAG, "resizeAndAnimatePipUnchecked: toBounds=" + toBounds
+ " duration=" + duration + " callers=\n" + Debug.getCallers(5, " ")); + " duration=" + duration + " callers=\n" + Debug.getCallers(5, " "));
} }
if (!toBounds.equals(mBounds)) {
// Intentionally resize here even if the current bounds match the destination bounds.
// This is so all the proper callbacks are performed.
mPipTaskOrganizer.scheduleAnimateResizePip(toBounds, duration, mUpdateBoundsCallback); mPipTaskOrganizer.scheduleAnimateResizePip(toBounds, duration, mUpdateBoundsCallback);
setAnimatingToBounds(toBounds); setAnimatingToBounds(toBounds);
} }
}
/** /**
* Returns a MagnetizedObject wrapper for PIP's animated bounds. This is provided to the * Returns a MagnetizedObject wrapper for PIP's animated bounds. This is provided to the