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

Unverified Commit aa225f7b authored by Adithya R's avatar Adithya R Committed by Michael Bestas
Browse files

SystemUI: Redraw display cutout on overlay changes



Fixes notch hide overlay on some devices

commit 5481d59996b34cda1cb6b680af7510fee7b53b42
Author: daniml3 <danimoral1001@gmail.com>
Date:   Tue Mar 9 08:11:13 2021 +0100

    SystemUI: check if the cutout views array is null before using it

    Signed-off-by: default avatardaniml3 <danimoral1001@gmail.com>
    Change-Id: I1316c61280dadc30a86f2ae72559437a61dd4616

Co-authored-by: default avatardaniml3 <danimoral1001@gmail.com>
Change-Id: I5a049099ab375833f1e5ebbda49dc36c3c0b0a68
parent db9faf13
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -949,6 +949,13 @@ public class ScreenDecorations extends CoreStartable implements Tunable , Dumpab
            updateConfiguration();
            updateConfiguration();
            if (DEBUG) Log.i(TAG, "onConfigChanged from rot " + oldRotation + " to " + mRotation);
            if (DEBUG) Log.i(TAG, "onConfigChanged from rot " + oldRotation + " to " + mRotation);
            setupDecorations();
            setupDecorations();
            if (mCutoutViews != null) {
                for (DisplayCutoutView dcv : mCutoutViews) {
                    if (dcv != null) {
                        dcv.updateCutout();
                    }
                }
            }
            if (mOverlays != null) {
            if (mOverlays != null) {
                // Updating the layout params ensures that ViewRootImpl will call relayoutWindow(),
                // Updating the layout params ensures that ViewRootImpl will call relayoutWindow(),
                // which ensures that the forced seamless rotation will end, even if we updated
                // which ensures that the forced seamless rotation will end, even if we updated