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

Skip to content
Commit e290bd06 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Use 180 degree as general upside down for rotation choice

The "UpsideDown" field of DisplayRotation stands for reverse portrait.
So the general up side down rotation should be ROTATION_180.

Otherwise a landscape display will get 90 as invalid and 180 as valid.

Portrait display (default h>w)
  mLandscapeRotation=ROTATION_90 mSeascapeRotation=ROTATION_270
  mPortraitRotation=ROTATION_0 mUpsideDownRotation=ROTATION_180

Landscape display (default w>h)
  mLandscapeRotation=ROTATION_0 mSeascapeRotation=ROTATION_180
  mPortraitRotation=ROTATION_270 mUpsideDownRotation=ROTATION_90

Bug: 204197290
Test: adb shell wm size 2000x1000
      Disable auto-rotation.
      Rotate the device 90-degree counterclockwise.
      The rotation hint button should show.
Change-Id: Iea6ae5d9ac1ffdf7333f7cc52e644f10ed5311a8
parent cc110e6a
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