From a85bed50dce0b1e0e609bb7e5dd8f115539dee2a Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 30 Jun 2021 12:15:24 +0800 Subject: [PATCH] bugfix --- kivyblocks/android_rotation.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kivyblocks/android_rotation.py b/kivyblocks/android_rotation.py index 48324c1..194ad3c 100644 --- a/kivyblocks/android_rotation.py +++ b/kivyblocks/android_rotation.py @@ -1,8 +1,11 @@ from kivy.utils import platform import plyer try: - from plyer.platforms.android import activity + from android import activity + # from plyer.platforms.android import activity + # return rotation is 0 forever except: + print('android_rotation.py:from android import activity ERROR') activity = None def get_rotation():