This commit is contained in:
yumoqing 2021-06-30 12:15:24 +08:00
parent 5ed0a06939
commit a85bed50dc

View File

@ -1,8 +1,11 @@
from kivy.utils import platform from kivy.utils import platform
import plyer import plyer
try: try:
from plyer.platforms.android import activity from android import activity
# from plyer.platforms.android import activity
# return rotation is 0 forever
except: except:
print('android_rotation.py:from android import activity ERROR')
activity = None activity = None
def get_rotation(): def get_rotation():