Loading quickstep/src/com/android/quickstep/TaskOverlayFactory.java +7 −0 Original line number Original line Diff line number Diff line Loading @@ -182,6 +182,13 @@ public class TaskOverlayFactory implements ResourceBasedOverride { } } } } /** * Called when the current task's thumbnail has changed. */ public void refreshActionVisibility(ThumbnailData thumbnail) { getActionsView().updateDisabledFlags(DISABLED_NO_THUMBNAIL, thumbnail == null); } /** /** * End rendering live tile in Overview. * End rendering live tile in Overview. * * Loading quickstep/src/com/android/quickstep/views/TaskThumbnailView.java +3 −1 Original line number Original line Diff line number Diff line Loading @@ -162,7 +162,9 @@ public class TaskThumbnailView extends View implements PluginListener<OverviewSc mBitmapShader = new BitmapShader(bm, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP); mBitmapShader = new BitmapShader(bm, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP); mPaint.setShader(mBitmapShader); mPaint.setShader(mBitmapShader); updateThumbnailMatrix(); updateThumbnailMatrix(); refreshOverlay(); if (mOverlayEnabled) { getTaskOverlay().refreshActionVisibility(mThumbnailData); } } else { } else { mBitmapShader = null; mBitmapShader = null; mThumbnailData = null; mThumbnailData = null; Loading Loading
quickstep/src/com/android/quickstep/TaskOverlayFactory.java +7 −0 Original line number Original line Diff line number Diff line Loading @@ -182,6 +182,13 @@ public class TaskOverlayFactory implements ResourceBasedOverride { } } } } /** * Called when the current task's thumbnail has changed. */ public void refreshActionVisibility(ThumbnailData thumbnail) { getActionsView().updateDisabledFlags(DISABLED_NO_THUMBNAIL, thumbnail == null); } /** /** * End rendering live tile in Overview. * End rendering live tile in Overview. * * Loading
quickstep/src/com/android/quickstep/views/TaskThumbnailView.java +3 −1 Original line number Original line Diff line number Diff line Loading @@ -162,7 +162,9 @@ public class TaskThumbnailView extends View implements PluginListener<OverviewSc mBitmapShader = new BitmapShader(bm, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP); mBitmapShader = new BitmapShader(bm, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP); mPaint.setShader(mBitmapShader); mPaint.setShader(mBitmapShader); updateThumbnailMatrix(); updateThumbnailMatrix(); refreshOverlay(); if (mOverlayEnabled) { getTaskOverlay().refreshActionVisibility(mThumbnailData); } } else { } else { mBitmapShader = null; mBitmapShader = null; mThumbnailData = null; mThumbnailData = null; Loading