Merge "Fix thumbnail disappearing during staged split animation" into tm-dev

This commit is contained in:
Tracy Zhou
2022-03-23 16:06:37 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 0 deletions
@@ -62,6 +62,7 @@ public class FloatingTaskThumbnailView extends View {
// Scale down the bitmap to fix x, and crop in y.
float scale = 1.0f * getMeasuredWidth() / mBitmap.getWidth();
mMatrix.reset();
mMatrix.postScale(scale, scale);
mBitmapShader.setLocalMatrix(mMatrix);
@@ -91,6 +91,8 @@ public class FloatingTaskView extends FrameLayout {
// Copy bounds of exiting thumbnail into ImageView
mThumbnailView.setThumbnail(thumbnail);
mThumbnailView.setVisibility(VISIBLE);
RecentsView recentsView = launcher.getOverviewPanel();
mOrientationHandler = recentsView.getPagedOrientationHandler();
mSplitPlaceholderView.setIcon(icon,