Merge "On configuration change setup screen decorations" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
10908b1972
@@ -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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user