Loading libs/WindowManager/Shell/src/com/android/wm/shell/pip/PipTransition.java +9 −0 Original line number Diff line number Diff line Loading @@ -53,6 +53,7 @@ import android.os.SystemProperties; import android.view.Surface; import android.view.SurfaceControl; import android.view.WindowManager; import android.window.TaskSnapshot; import android.window.TransitionInfo; import android.window.TransitionRequestInfo; import android.window.WindowContainerToken; Loading Loading @@ -875,6 +876,14 @@ public class PipTransition extends PipTransitionController { } else { animator.setColorContentOverlay(mContext); } } else { final TaskSnapshot snapshot = PipUtils.getTaskSnapshot( taskInfo.launchIntoPipHostTaskId, false /* isLowResolution */); if (snapshot != null) { // use the task snapshot during the animation, this is for // launch-into-pip aka. content-pip use case. animator.setSnapshotContentOverlay(snapshot, sourceHintRect); } } } else if (enterAnimationType == ANIM_TYPE_ALPHA) { animator = mPipAnimationController.getAnimator(taskInfo, leash, destinationBounds, Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/pip/PipTransition.java +9 −0 Original line number Diff line number Diff line Loading @@ -53,6 +53,7 @@ import android.os.SystemProperties; import android.view.Surface; import android.view.SurfaceControl; import android.view.WindowManager; import android.window.TaskSnapshot; import android.window.TransitionInfo; import android.window.TransitionRequestInfo; import android.window.WindowContainerToken; Loading Loading @@ -875,6 +876,14 @@ public class PipTransition extends PipTransitionController { } else { animator.setColorContentOverlay(mContext); } } else { final TaskSnapshot snapshot = PipUtils.getTaskSnapshot( taskInfo.launchIntoPipHostTaskId, false /* isLowResolution */); if (snapshot != null) { // use the task snapshot during the animation, this is for // launch-into-pip aka. content-pip use case. animator.setSnapshotContentOverlay(snapshot, sourceHintRect); } } } else if (enterAnimationType == ANIM_TYPE_ALPHA) { animator = mPipAnimationController.getAnimator(taskInfo, leash, destinationBounds, Loading