Merge "PiP: Animate resize even if the bounds are the same." into rvc-dev

This commit is contained in:
Ben Lin
2020-06-15 17:44:45 +00:00
committed by Android (Google) Code Review

View File

@@ -491,10 +491,11 @@ 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)) {
mPipTaskOrganizer.scheduleAnimateResizePip(toBounds, duration, mUpdateBoundsCallback); // Intentionally resize here even if the current bounds match the destination bounds.
setAnimatingToBounds(toBounds); // This is so all the proper callbacks are performed.
} mPipTaskOrganizer.scheduleAnimateResizePip(toBounds, duration, mUpdateBoundsCallback);
setAnimatingToBounds(toBounds);
} }
/** /**