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

Commit 55861dc5 authored by Alex Chau's avatar Alex Chau Committed by Android (Google) Code Review
Browse files

Merge "Only refresh DISABLED_NO_THUMBNAIL when thumbnail changes" into sc-v2-dev

parents b3e8d11b 63056221
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line 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.
         * End rendering live tile in Overview.
         *
         *
+3 −1
Original line number Original line 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);
            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;