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

Commit 2121a1b2 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 7269201 from a538ffe2 to rvc-qpr3-release

Change-Id: If859efaaab8aae2518d6e0344ebbeca4335e2213
parents 593f4389 a538ffe2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -147,10 +147,10 @@ public class TaskOverlayFactory implements ResourceBasedOverride {
        public void initOverlay(Task task, ThumbnailData thumbnail, Matrix matrix,
                boolean rotated) {
            getActionsView().updateDisabledFlags(DISABLED_NO_THUMBNAIL, thumbnail == null);
            final boolean isAllowedByPolicy = mThumbnailView.isRealSnapshot();

            if (thumbnail != null) {
                getActionsView().updateDisabledFlags(DISABLED_ROTATED, rotated);
                final boolean isAllowedByPolicy = thumbnail.isRealSnapshot;

                getActionsView().setCallbacks(new OverlayUICallbacks() {
                    @Override
+3 −2
Original line number Diff line number Diff line
@@ -447,13 +447,14 @@ public class TaskThumbnailView extends View implements PluginListener<OverviewSc
    }

    /**
     * Returns whether the snapshot is real.
     * Returns whether the snapshot is real. If the device is locked for the user of the task,
     * the snapshot used will be an app-theme generated snapshot instead of a real snapshot.
     */
    public boolean isRealSnapshot() {
        if (mThumbnailData == null) {
            return false;
        }
        return mThumbnailData.isRealSnapshot;
        return mThumbnailData.isRealSnapshot && !mTask.isLocked;
    }

    /**