diff --git a/plyer/platforms/android/camera.py b/plyer/platforms/android/camera.py index be259aa01..19707bdc7 100644 --- a/plyer/platforms/android/camera.py +++ b/plyer/platforms/android/camera.py @@ -6,7 +6,7 @@ from plyer.platforms.android import activity Intent = autoclass('android.content.Intent') -PythonActivity = autoclass('org.renpy.android.PythonActivity') +PythonActivity = autoclass('org.kivy.android.PythonActivity') MediaStore = autoclass('android.provider.MediaStore') Uri = autoclass('android.net.Uri') diff --git a/plyer/platforms/android/orientation.py b/plyer/platforms/android/orientation.py index 5f10958f9..4b677c7b4 100644 --- a/plyer/platforms/android/orientation.py +++ b/plyer/platforms/android/orientation.py @@ -31,6 +31,8 @@ def _set_sensor(self, **kwargs): if mode == 'any': activity.setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_SENSOR) + elif:mode =='user': + activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_USER) elif mode == 'landscape': activity.setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE)