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 <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: daniml3 <danimoral1001@gmail.com>
    Change-Id: I1316c61280dadc30a86f2ae72559437a61dd4616

Co-authored-by: daniml3 <danimoral1001@gmail.com>
Change-Id: I5a049099ab375833f1e5ebbda49dc36c3c0b0a68
  • Loading branch information
2 people authored and basamaryan committed Aug 11, 2023
1 parent 98c0fbd commit 03eb886
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -986,6 +986,13 @@ public void onConfigurationChanged(Configuration newConfig) {
updateConfiguration();
if (DEBUG) Log.i(TAG, "onConfigChanged from rot " + oldRotation + " to " + mRotation);
setupDecorations();
if (mCutoutViews != null) {
for (DisplayCutoutView dcv : mCutoutViews) {
if (dcv != null) {
dcv.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 03eb886

Please sign in to comment.