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

This commit is contained in:
Riddle Hsu
2021-11-05 03:20:29 +00:00
committed by Android (Google) Code Review

View File

@@ -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;