Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23af5955 authored by Alex Chau's avatar Alex Chau Committed by Automerger Merge Worker
Browse files

Merge "Only refresh DISABLED_NO_THUMBNAIL when thumbnail changes" into sc-v2-dev am: 55861dc5

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

Change-Id: I79c9685bfdf9cec713c06cd3a62cf9388867432d
parents 4f64a7fc 55861dc5
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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.
         *
+3 −1
Original line number Diff line number Diff line
@@ -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;