commit | 5c2b48aa924c6ddf540fd3f72feb1a180f5414a6 | [log] [tgz] |
---|---|---|
author | Beverly <beverlyt@google.com> | Thu May 24 09:25:45 2018 -0400 |
committer | Beverly <beverlyt@google.com> | Thu May 24 10:58:00 2018 -0400 |
tree | 8add211da8bb66291d95526e762c27ed5d19c959 | |
parent | 9ed0da42b3d827b5de251676dcd35e8fb5c33a5c [diff] |
On configuration change setup screen decorations Test: developer options > set emulated cutout Change-Id: I6418ad8226955264d6197491d772954491aba9ac Fixes: 80230317
diff --git a/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java b/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java index 2746a71..e347a14 100644 --- a/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java +++ b/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java
@@ -196,6 +196,9 @@ @Override protected void onConfigurationChanged(Configuration newConfig) { updateOrientation(); + if (shouldDrawCutout() && mOverlay == null) { + setupDecorations(); + } } protected void updateOrientation() { @@ -207,10 +210,6 @@ updateLayoutParams(); updateViews(); } - - if (shouldDrawCutout() && mOverlay == null) { - setupDecorations(); - } } }