SystemUI: Fix wrong method to identify cutout position
- When the cutout is on the right side of the screen, the position of the right bound of the cutout rectangle should be compared to the screen width, not to the height. - Google sneakily fixed it in the following commit of android-13.0.0_r16 0ab0199c - Now, for devices with cutout on the right side of screen, no useless space area will be generated in the middle of the status bar. Test: 1. Settings -> System -> Developer options 2. Select "Corner cutout" in "Display cutout" 3. Enable "Show layout bounds" 4. Check for space area between the notification icons area on the left side and the system icons area on the right side that shouldn't be there. Change-Id: I75632aed20a9e31fd82dd7562c718e4c567dd9f3
Loading
Please register or sign in to comment