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

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17343720

Change-Id: Ib53c016128b8c883bbcba239e002069b84aec3dd
This commit is contained in:
Tracy Zhou
2022-03-23 16:40:04 +00:00
committed by Automerger Merge Worker
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,