We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9e68fa commit d2aac47Copy full SHA for d2aac47
plyer/platforms/android/orientation.py
@@ -31,6 +31,8 @@ def _set_sensor(self, **kwargs):
31
if mode == 'any':
32
activity.setRequestedOrientation(
33
ActivityInfo.SCREEN_ORIENTATION_SENSOR)
34
+ elif:mode =='user':
35
+ activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_USER)
36
elif mode == 'landscape':
37
38
ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE)
0 commit comments