Display Cutout: invalidate overlay view when cutout changes
Fixes an issue where the emulation overlay did not
properly update when changing the cutout to a similarly
sized cutout.
Change-Id: Ie29829c08185b97b40c87b772fec452a01c0ef3a
Fixes: 74404788
Test: Select Narrow display cutout, then select Wide or Double cutout. Verify that the cutout properly changes.
diff --git a/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java b/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java
index ec2390f..d4d1f83 100644
--- a/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java
+++ b/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java
@@ -380,6 +380,7 @@
mBounds.set(mInfo.displayCutout.getBounds());
localBounds(mBoundingRect);
mInfo.displayCutout.getBounds().getBoundaryPath(mBoundingPath);
+ invalidate();
newVisible = VISIBLE;
} else {
newVisible = GONE;