From 5c2b48aa924c6ddf540fd3f72feb1a180f5414a6 Mon Sep 17 00:00:00 2001 From: Beverly Date: Thu, 24 May 2018 09:25:45 -0400 Subject: [PATCH] On configuration change setup screen decorations Test: developer options > set emulated cutout Change-Id: I6418ad8226955264d6197491d772954491aba9ac Fixes: 80230317 --- .../src/com/android/systemui/ScreenDecorations.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java b/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java index 2746a71e33168..e347a144dc9c6 100644 --- a/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java +++ b/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java @@ -196,6 +196,9 @@ public class ScreenDecorations extends SystemUI implements Tunable { @Override protected void onConfigurationChanged(Configuration newConfig) { updateOrientation(); + if (shouldDrawCutout() && mOverlay == null) { + setupDecorations(); + } } protected void updateOrientation() { @@ -207,10 +210,6 @@ public class ScreenDecorations extends SystemUI implements Tunable { updateLayoutParams(); updateViews(); } - - if (shouldDrawCutout() && mOverlay == null) { - setupDecorations(); - } } }