diff options
author | 2018-03-14 11:51:23 -0700 | |
---|---|---|
committer | 2018-03-14 12:03:34 -0700 | |
commit | 772e8bc904e39883862d0f1c2baebed100a143f1 (patch) | |
tree | 8ef3c32b9c3eaaf51cd7afec3b9781e4e7305e35 | |
parent | 19cdd09a60cb870f50e6fcd45f4d339466086f45 (diff) |
Disable move animations for ScreenDecor overlays.
They look pretty weird during seamless rotation.
Bug: 72038766
Test: Manual.
Change-Id: I68dab0761a9faca42324e64a545477302c6e3bbe
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/ScreenDecorations.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java b/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java index 4d54bdd2225c..e79006137a5e 100644 --- a/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java +++ b/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java @@ -239,10 +239,13 @@ public class ScreenDecorations extends SystemUI implements Tunable { | WindowManager.LayoutParams.FLAG_SLIPPERY | WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN, PixelFormat.TRANSLUCENT); - lp.privateFlags |= WindowManager.LayoutParams.PRIVATE_FLAG_SHOW_FOR_ALL_USERS; + lp.privateFlags |= WindowManager.LayoutParams.PRIVATE_FLAG_SHOW_FOR_ALL_USERS + | WindowManager.LayoutParams.PRIVATE_FLAG_NO_MOVE_ANIMATION; + if (!DEBUG_SCREENSHOT_ROUNDED_CORNERS) { lp.privateFlags |= WindowManager.LayoutParams.PRIVATE_FLAG_IS_ROUNDED_CORNERS_OVERLAY; } + lp.setTitle("ScreenDecorOverlay"); lp.gravity = Gravity.TOP | Gravity.LEFT; lp.layoutInDisplayCutoutMode = LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS; |