diff options
| author | 2021-11-10 02:38:17 +0000 | |
|---|---|---|
| committer | 2021-11-10 02:38:17 +0000 | |
| commit | 5448bd7ed38578b45bae8f9e98b08702910bc892 (patch) | |
| tree | b3309e1b81fba8f2d8c3db5fb0c460e278ea1297 | |
| parent | 88aae2f25f70fc0d5bec44b40caee1346e3afc25 (diff) | |
| parent | bb3f22df9a0cfb6e09ceafc8108a6d218ddea27f (diff) | |
Merge "Mark screen decorations as trusted overlays" into rvc-dev am: bb3f22df9a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16222361
Change-Id: Ie00822b22ee7e9b46a5229f1e778e5a4c1a1bccf
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/ScreenDecorations.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java b/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java index 7861211e802d..b167750c63e8 100644 --- a/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java +++ b/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java @@ -436,6 +436,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; } |