Loading quickstep/src/com/android/quickstep/views/TaskThumbnailView.java +7 −3 Original line number Diff line number Diff line Loading @@ -139,6 +139,7 @@ public class TaskThumbnailView extends View { } private void updateThumbnailMatrix() { boolean rotate = false; if (mBitmapShader != null && mThumbnailData != null) { float scale = mThumbnailData.scale; float thumbnailWidth = mThumbnailData.thumbnail.getWidth() - Loading @@ -146,8 +147,6 @@ public class TaskThumbnailView extends View { float thumbnailHeight = mThumbnailData.thumbnail.getHeight() - (mThumbnailData.insets.top + mThumbnailData.insets.bottom) * scale; final float thumbnailScale; boolean rotate = false; final DeviceProfile profile = BaseActivity.fromContext(getContext()) .getDeviceProfile(); if (getMeasuredWidth() == 0) { Loading Loading @@ -226,7 +225,12 @@ public class TaskThumbnailView extends View { mPaint.setShader(shader); } if (rotate) { // The overlay doesn't really work when the screenshot is rotated, so don't add it. mOverlay.reset(); } else { mOverlay.setTaskInfo(mTask, mThumbnailData, mMatrix); } invalidate(); } Loading Loading
quickstep/src/com/android/quickstep/views/TaskThumbnailView.java +7 −3 Original line number Diff line number Diff line Loading @@ -139,6 +139,7 @@ public class TaskThumbnailView extends View { } private void updateThumbnailMatrix() { boolean rotate = false; if (mBitmapShader != null && mThumbnailData != null) { float scale = mThumbnailData.scale; float thumbnailWidth = mThumbnailData.thumbnail.getWidth() - Loading @@ -146,8 +147,6 @@ public class TaskThumbnailView extends View { float thumbnailHeight = mThumbnailData.thumbnail.getHeight() - (mThumbnailData.insets.top + mThumbnailData.insets.bottom) * scale; final float thumbnailScale; boolean rotate = false; final DeviceProfile profile = BaseActivity.fromContext(getContext()) .getDeviceProfile(); if (getMeasuredWidth() == 0) { Loading Loading @@ -226,7 +225,12 @@ public class TaskThumbnailView extends View { mPaint.setShader(shader); } if (rotate) { // The overlay doesn't really work when the screenshot is rotated, so don't add it. mOverlay.reset(); } else { mOverlay.setTaskInfo(mTask, mThumbnailData, mMatrix); } invalidate(); } Loading