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
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user