Loading services/core/java/com/android/server/wm/ActivityRecord.java +4 −4 Original line number Diff line number Diff line Loading @@ -5936,7 +5936,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A if (win == null) { return; } final Rect frame = win.getFrameLw(); final Rect frame = win.getRelativeFrameLw(); final int thumbnailDrawableRes = task.mUserId == mWmService.mCurrentUserId ? R.drawable.ic_account_circle : R.drawable.ic_corp_badge; Loading @@ -5946,12 +5946,12 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A if (thumbnail == null) { return; } final Transaction transaction = getAnimatingContainer().getPendingTransaction(); final Transaction transaction = getPendingTransaction(); mThumbnail = new WindowContainerThumbnail(mWmService.mSurfaceFactory, transaction, getAnimatingContainer(), thumbnail); transaction, getTask(), thumbnail); final Animation animation = getDisplayContent().mAppTransition.createCrossProfileAppsThumbnailAnimationLocked( win.getFrameLw()); frame); mThumbnail.startAnimation(transaction, animation, new Point(frame.left, frame.top)); } Loading services/core/java/com/android/server/wm/WindowContainerThumbnail.java +2 −2 Original line number Diff line number Diff line Loading @@ -97,7 +97,7 @@ class WindowContainerThumbnail implements Animatable { // TODO: This should be attached as a child to the app token, once the thumbnail animations // use relative coordinates. Once we start animating task we can also consider attaching // this to the task. mSurfaceControl = mWindowContainer.makeSurface() mSurfaceControl = mWindowContainer.makeChildSurface(mWindowContainer.getTopChild()) .setName("thumbnail anim: " + mWindowContainer.toString()) .setBufferSize(mWidth, mHeight) .setFormat(PixelFormat.TRANSLUCENT) Loading Loading @@ -209,7 +209,7 @@ class WindowContainerThumbnail implements Animatable { @Override public Builder makeAnimationLeash() { return mWindowContainer.makeSurface(); return mWindowContainer.makeChildSurface(mWindowContainer.getTopChild()); } @Override Loading Loading
services/core/java/com/android/server/wm/ActivityRecord.java +4 −4 Original line number Diff line number Diff line Loading @@ -5936,7 +5936,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A if (win == null) { return; } final Rect frame = win.getFrameLw(); final Rect frame = win.getRelativeFrameLw(); final int thumbnailDrawableRes = task.mUserId == mWmService.mCurrentUserId ? R.drawable.ic_account_circle : R.drawable.ic_corp_badge; Loading @@ -5946,12 +5946,12 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A if (thumbnail == null) { return; } final Transaction transaction = getAnimatingContainer().getPendingTransaction(); final Transaction transaction = getPendingTransaction(); mThumbnail = new WindowContainerThumbnail(mWmService.mSurfaceFactory, transaction, getAnimatingContainer(), thumbnail); transaction, getTask(), thumbnail); final Animation animation = getDisplayContent().mAppTransition.createCrossProfileAppsThumbnailAnimationLocked( win.getFrameLw()); frame); mThumbnail.startAnimation(transaction, animation, new Point(frame.left, frame.top)); } Loading
services/core/java/com/android/server/wm/WindowContainerThumbnail.java +2 −2 Original line number Diff line number Diff line Loading @@ -97,7 +97,7 @@ class WindowContainerThumbnail implements Animatable { // TODO: This should be attached as a child to the app token, once the thumbnail animations // use relative coordinates. Once we start animating task we can also consider attaching // this to the task. mSurfaceControl = mWindowContainer.makeSurface() mSurfaceControl = mWindowContainer.makeChildSurface(mWindowContainer.getTopChild()) .setName("thumbnail anim: " + mWindowContainer.toString()) .setBufferSize(mWidth, mHeight) .setFormat(PixelFormat.TRANSLUCENT) Loading Loading @@ -209,7 +209,7 @@ class WindowContainerThumbnail implements Animatable { @Override public Builder makeAnimationLeash() { return mWindowContainer.makeSurface(); return mWindowContainer.makeChildSurface(mWindowContainer.getTopChild()); } @Override Loading