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

This commit is contained in:
Tracy Zhou authored and Android (Google) Code Review committed 2022-03-23 16:06:37 +00:00
commit f3d81b0a1c
2 files changed
+3

No files matched your search

@@ -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,