Merge "On configuration change setup screen decorations" into pi-dev am: 10908b1972

am: 2a4ce94354

Change-Id: I298223a3e5712b91fa6105aa44fb35996d637f65
This commit is contained in:
Beverly
2018-05-24 18:03:01 -07:00
committed by android-build-merger

View File

@@ -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();
}
}
}