Merge "PiP: Animate resize even if the bounds are the same." into rvc-dev am: 32724409f5 am: 9c1a594951 am: 16a6108580
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11856229 Change-Id: I48629425ab5d989220284e13196e9fdce14546b4
This commit is contained in:
@@ -491,10 +491,11 @@ public class PipMotionHelper implements PipAppOpsListener.Callback,
|
||||
Log.d(TAG, "resizeAndAnimatePipUnchecked: toBounds=" + toBounds
|
||||
+ " duration=" + duration + " callers=\n" + Debug.getCallers(5, " "));
|
||||
}
|
||||
if (!toBounds.equals(mBounds)) {
|
||||
mPipTaskOrganizer.scheduleAnimateResizePip(toBounds, duration, mUpdateBoundsCallback);
|
||||
setAnimatingToBounds(toBounds);
|
||||
}
|
||||
|
||||
// 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);
|
||||
setAnimatingToBounds(toBounds);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user