Loading packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java +8 −5 Original line number Diff line number Diff line Loading @@ -141,9 +141,9 @@ public class TaskViewThumbnail extends View { return; } if (mBitmapShader != null) { int viewWidth = mTaskViewRect.width(); int viewHeight = mTaskViewRect.height(); if (mBitmapShader != null) { // We are drawing the thumbnail in the same orientation, so just fit the width int thumbnailWidth = (int) (mThumbnailRect.width() * mThumbnailScale); Loading Loading @@ -180,6 +180,9 @@ public class TaskViewThumbnail extends View { canvas.restoreToCount(count); } } else { canvas.drawRoundRect(0, 0, viewWidth, viewHeight, mCornerRadius, mCornerRadius, mBgFillPaint); } } Loading Loading @@ -319,12 +322,12 @@ public class TaskViewThumbnail extends View { mDisabledInSafeMode = disabledInSafeMode; if (t.thumbnail != null) { setThumbnail(t.thumbnail, thumbnailInfo); if (t.colorBackground != 0) { mBgFillPaint.setColor(t.colorBackground); } } else { setThumbnail(null, null); } if (t.colorBackground != 0) { mBgFillPaint.setColor(t.colorBackground); } } /** Unbinds the thumbnail view from the task */ Loading Loading
packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java +8 −5 Original line number Diff line number Diff line Loading @@ -141,9 +141,9 @@ public class TaskViewThumbnail extends View { return; } if (mBitmapShader != null) { int viewWidth = mTaskViewRect.width(); int viewHeight = mTaskViewRect.height(); if (mBitmapShader != null) { // We are drawing the thumbnail in the same orientation, so just fit the width int thumbnailWidth = (int) (mThumbnailRect.width() * mThumbnailScale); Loading Loading @@ -180,6 +180,9 @@ public class TaskViewThumbnail extends View { canvas.restoreToCount(count); } } else { canvas.drawRoundRect(0, 0, viewWidth, viewHeight, mCornerRadius, mCornerRadius, mBgFillPaint); } } Loading Loading @@ -319,12 +322,12 @@ public class TaskViewThumbnail extends View { mDisabledInSafeMode = disabledInSafeMode; if (t.thumbnail != null) { setThumbnail(t.thumbnail, thumbnailInfo); if (t.colorBackground != 0) { mBgFillPaint.setColor(t.colorBackground); } } else { setThumbnail(null, null); } if (t.colorBackground != 0) { mBgFillPaint.setColor(t.colorBackground); } } /** Unbinds the thumbnail view from the task */ Loading