Merge "Only refresh DISABLED_NO_THUMBNAIL when thumbnail changes" into sc-v2-dev am: 55861dc50b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15455164 Change-Id: I79c9685bfdf9cec713c06cd3a62cf9388867432d
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
@@ -162,7 +162,9 @@ public class TaskThumbnailView extends View implements PluginListener<OverviewSc
|
||||
mBitmapShader = new BitmapShader(bm, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP);
|
||||
mPaint.setShader(mBitmapShader);
|
||||
updateThumbnailMatrix();
|
||||
refreshOverlay();
|
||||
if (mOverlayEnabled) {
|
||||
getTaskOverlay().refreshActionVisibility(mThumbnailData);
|
||||
}
|
||||
} else {
|
||||
mBitmapShader = null;
|
||||
mThumbnailData = null;
|
||||
|
||||
Reference in New Issue
Block a user