Merge "Fix pip activity remained in PAUSING state" into tm-qpr-dev am: f910d030b8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19293791 Change-Id: I6c4f0f114316f539d8695f87b61ac37fed96265d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -3543,10 +3543,9 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
|
||||
mRootWindowContainer.moveActivityToPinnedRootTask(r,
|
||||
null /* launchIntoPipHostActivity */, "enterPictureInPictureMode",
|
||||
transition);
|
||||
final Task task = r.getTask();
|
||||
// Continue the pausing process after entering pip.
|
||||
if (task.getPausingActivity() == r) {
|
||||
task.schedulePauseActivity(r, false /* userLeaving */,
|
||||
if (r.isState(PAUSING)) {
|
||||
r.getTask().schedulePauseActivity(r, false /* userLeaving */,
|
||||
false /* pauseImmediately */, "auto-pip");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user