Merge "Fix pip activity remained in PAUSING state" into tm-qpr-dev
This commit is contained in:
@@ -3543,10 +3543,9 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
|
|||||||
mRootWindowContainer.moveActivityToPinnedRootTask(r,
|
mRootWindowContainer.moveActivityToPinnedRootTask(r,
|
||||||
null /* launchIntoPipHostActivity */, "enterPictureInPictureMode",
|
null /* launchIntoPipHostActivity */, "enterPictureInPictureMode",
|
||||||
transition);
|
transition);
|
||||||
final Task task = r.getTask();
|
|
||||||
// Continue the pausing process after entering pip.
|
// Continue the pausing process after entering pip.
|
||||||
if (task.getPausingActivity() == r) {
|
if (r.isState(PAUSING)) {
|
||||||
task.schedulePauseActivity(r, false /* userLeaving */,
|
r.getTask().schedulePauseActivity(r, false /* userLeaving */,
|
||||||
false /* pauseImmediately */, "auto-pip");
|
false /* pauseImmediately */, "auto-pip");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user