Merge "On configuration change setup screen decorations" into pi-dev

am: 10908b1972

Change-Id: I2857ad8c969543843821e64154df9d738c4368db
This commit is contained in:
Beverly
2018-05-24 14:07:58 -07:00
committed by android-build-merger

View File

@@ -196,6 +196,9 @@ public class ScreenDecorations extends SystemUI implements Tunable {
@Override @Override
protected void onConfigurationChanged(Configuration newConfig) { protected void onConfigurationChanged(Configuration newConfig) {
updateOrientation(); updateOrientation();
if (shouldDrawCutout() && mOverlay == null) {
setupDecorations();
}
} }
protected void updateOrientation() { protected void updateOrientation() {
@@ -207,10 +210,6 @@ public class ScreenDecorations extends SystemUI implements Tunable {
updateLayoutParams(); updateLayoutParams();
updateViews(); updateViews();
} }
if (shouldDrawCutout() && mOverlay == null) {
setupDecorations();
}
} }
} }