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

Commit 5c2b48aa authored by Beverly's avatar Beverly
Browse files

On configuration change setup screen decorations

Test: developer options > set emulated cutout
Change-Id: I6418ad8226955264d6197491d772954491aba9ac
Fixes: 80230317
parent 9ed0da42
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();
            }
        }
    }