Merge "Mark screen decorations as trusted overlays" into rvc-dev am: bb3f22df9a am: 5448bd7ed3 am: f159de0dcf am: 603e4d74fd

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16222361

Change-Id: I7682e8ff23c55bb9c72cc5251eb91487ce042580
This commit is contained in:
TreeHugger Robot
2021-11-10 03:26:34 +00:00
committed by Automerger Merge Worker

View File

@@ -534,6 +534,9 @@ public class ScreenDecorations extends SystemUI implements Tunable {
lp.privateFlags |= WindowManager.LayoutParams.SYSTEM_FLAG_SHOW_FOR_ALL_USERS
| WindowManager.LayoutParams.PRIVATE_FLAG_NO_MOVE_ANIMATION;
// FLAG_SLIPPERY can only be set by trusted overlays
lp.privateFlags |= WindowManager.LayoutParams.PRIVATE_FLAG_TRUSTED_OVERLAY;
if (!DEBUG_SCREENSHOT_ROUNDED_CORNERS) {
lp.privateFlags |= WindowManager.LayoutParams.PRIVATE_FLAG_IS_ROUNDED_CORNERS_OVERLAY;
}