OSDN Git Service

ScreenDecorations: fix cutout not showing in seascape
authorAdrian Roos <roosa@google.com>
Thu, 31 May 2018 17:54:53 +0000 (19:54 +0200)
committerDaniel Sandler <dsandler@android.com>
Fri, 8 Jun 2018 19:55:21 +0000 (19:55 +0000)
commitbeeb7f4272c7ba1fe61324ced141455fc06967a5
tree7cc1111222fbab7917c8265ba7a8521be126c4d0
parentcb3dd2889cba3759f6a8392d9cccb37702186b18
ScreenDecorations: fix cutout not showing in seascape

Now that we invert the gravity in seascape and upside down,
we also need to invert which notch we draw in that window.

Change-Id: I28d892a433d47f65b227220278cbc56bbbb7e674
Fixes: 80530886
Test: Rotate phone to seascape, turn on emulated notch. verify notch overlay is drawing.
packages/SystemUI/src/com/android/systemui/ScreenDecorations.java