Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 10908b19 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents cf2c35dc 5c2b48aa
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -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();
            }
        }
    }