Block recent work profile apps content capture am: 8786016e85
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13989187 Change-Id: I0e39d019e358dd8e0016927a9c9b50717cf6eb93
This commit is contained in:
commit
18217e7f94
|
@ -146,7 +146,7 @@ public class TaskOverlayFactory implements ResourceBasedOverride {
|
|||
*/
|
||||
public void initOverlay(Task task, ThumbnailData thumbnail, Matrix matrix,
|
||||
boolean rotated) {
|
||||
final boolean isAllowedByPolicy = thumbnail.isRealSnapshot;
|
||||
final boolean isAllowedByPolicy = mThumbnailView.isRealSnapshot();
|
||||
|
||||
getActionsView().updateDisabledFlags(DISABLED_ROTATED, rotated);
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue