Skip to content

Commit

Permalink
SystemUI: Redraw display cutout on overlay changes
Browse files Browse the repository at this point in the history
Fixes notch hide overlay on some devices

commit 5481d59996b34cda1cb6b680af7510fee7b53b42
Author: daniml3 <[email protected]>
Date:   Tue Mar 9 08:11:13 2021 +0100

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

    Signed-off-by: daniml3 <[email protected]>
    Change-Id: I1316c61280dadc30a86f2ae72559437a61dd4616

Co-authored-by: daniml3 <[email protected]>
Change-Id: I5a049099ab375833f1e5ebbda49dc36c3c0b0a68
  • Loading branch information
2 people authored and NurKeinNeid committed Dec 11, 2024
1 parent 05c8749 commit f361996
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1092,6 +1092,12 @@ public void onConfigChanged(Configuration newConfig) {
mLogger.logRotationChanged(oldRotation, mRotation);
}
setupDecorations();
for (int id: DISPLAY_CUTOUT_IDS) {
final View view = getOverlayView(id);
if (view instanceof DisplayCutoutView) {
((DisplayCutoutView) view).updateCutout();
}
}
if (mOverlays != null) {
// Updating the layout params ensures that ViewRootImpl will call relayoutWindow(),
// which ensures that the forced seamless rotation will end, even if we updated
Expand Down

0 comments on commit f361996

Please sign in to comment.