Loading services/core/java/com/android/server/wm/ActivityRecord.java +4 −1 Original line number Diff line number Diff line Loading @@ -2867,7 +2867,10 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A if (mStartingData != null) { if (mStartingData.mAssociatedTask != null) { // The snapshot type may have called associateStartingDataWithTask(). // If this activity is rotated, don't attach to task to preserve the transform. if (!hasFixedRotationTransform()) { attachStartingSurfaceToAssociatedTask(); } } else if (isEmbedded()) { associateStartingWindowWithTaskIfNeeded(); } Loading services/core/java/com/android/server/wm/WindowState.java +2 −1 Original line number Diff line number Diff line Loading @@ -5506,7 +5506,8 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP @Override public SurfaceControl getAnimationLeashParent() { if (isStartingWindowAssociatedToTask()) { if (mActivityRecord != null && !mActivityRecord.hasFixedRotationTransform() && isStartingWindowAssociatedToTask()) { return mStartingData.mAssociatedTask.mSurfaceControl; } return super.getAnimationLeashParent(); Loading Loading
services/core/java/com/android/server/wm/ActivityRecord.java +4 −1 Original line number Diff line number Diff line Loading @@ -2867,7 +2867,10 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A if (mStartingData != null) { if (mStartingData.mAssociatedTask != null) { // The snapshot type may have called associateStartingDataWithTask(). // If this activity is rotated, don't attach to task to preserve the transform. if (!hasFixedRotationTransform()) { attachStartingSurfaceToAssociatedTask(); } } else if (isEmbedded()) { associateStartingWindowWithTaskIfNeeded(); } Loading
services/core/java/com/android/server/wm/WindowState.java +2 −1 Original line number Diff line number Diff line Loading @@ -5506,7 +5506,8 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP @Override public SurfaceControl getAnimationLeashParent() { if (isStartingWindowAssociatedToTask()) { if (mActivityRecord != null && !mActivityRecord.hasFixedRotationTransform() && isStartingWindowAssociatedToTask()) { return mStartingData.mAssociatedTask.mSurfaceControl; } return super.getAnimationLeashParent(); Loading