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

Skip to content
Commit 44bbfea0 authored by Pzqqt's avatar Pzqqt Committed by Bruno Martins
Browse files

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
parent e5322ec4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment