Loading services/core/java/com/android/server/wm/PinnedActivityStack.java +4 −1 Original line number Diff line number Diff line Loading @@ -97,7 +97,10 @@ class PinnedActivityStack extends ActivityStack<PinnedStackWindowController> // It is guaranteed that the activities requiring the update will be in the pinned stack at // this point (either reparented before the animation into PiP, or before reparenting after // the animation out of PiP) synchronized (mService) { synchronized (mService.mGlobalLock) { if (!isAttached()) { return; } ArrayList<TaskRecord> tasks = getAllTasks(); for (int i = 0; i < tasks.size(); i++ ) { mStackSupervisor.updatePictureInPictureMode(tasks.get(i), targetStackBounds, Loading services/core/java/com/android/server/wm/TaskStack.java +5 −0 Original line number Diff line number Diff line Loading @@ -1765,6 +1765,11 @@ public class TaskStack extends WindowContainer<Task> implements @Override public boolean shouldDeferStartOnMoveToFullscreen() { synchronized (mService.mGlobalLock) { if (!isAttached()) { // Unnecessary to pause the animation because the stack is detached. return false; } // Workaround for the recents animation -- normally we need to wait for the new activity // to show before starting the PiP animation, but because we start and show the home // activity early for the recents animation prior to the PiP animation starting, there Loading Loading
services/core/java/com/android/server/wm/PinnedActivityStack.java +4 −1 Original line number Diff line number Diff line Loading @@ -97,7 +97,10 @@ class PinnedActivityStack extends ActivityStack<PinnedStackWindowController> // It is guaranteed that the activities requiring the update will be in the pinned stack at // this point (either reparented before the animation into PiP, or before reparenting after // the animation out of PiP) synchronized (mService) { synchronized (mService.mGlobalLock) { if (!isAttached()) { return; } ArrayList<TaskRecord> tasks = getAllTasks(); for (int i = 0; i < tasks.size(); i++ ) { mStackSupervisor.updatePictureInPictureMode(tasks.get(i), targetStackBounds, Loading
services/core/java/com/android/server/wm/TaskStack.java +5 −0 Original line number Diff line number Diff line Loading @@ -1765,6 +1765,11 @@ public class TaskStack extends WindowContainer<Task> implements @Override public boolean shouldDeferStartOnMoveToFullscreen() { synchronized (mService.mGlobalLock) { if (!isAttached()) { // Unnecessary to pause the animation because the stack is detached. return false; } // Workaround for the recents animation -- normally we need to wait for the new activity // to show before starting the PiP animation, but because we start and show the home // activity early for the recents animation prior to the PiP animation starting, there Loading