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

Commit c6b8df83 authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Use 180 degree as general upside down for rotation choice" into sc-v2-dev

parents 33454b56 e290bd06
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1330,7 +1330,7 @@ public class DisplayRotation {
            case ActivityInfo.SCREEN_ORIENTATION_USER:
            case ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED:
                // Works with any rotation except upside down.
                return (preferredRotation >= 0) && (preferredRotation != mUpsideDownRotation);
                return (preferredRotation >= 0) && (preferredRotation != Surface.ROTATION_180);
        }

        return false;