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

This commit is contained in:
TreeHugger Robot
2018-05-24 20:05:49 +00:00
committed by Android (Google) Code Review

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