mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-11-25 14:50:37 +01:00
Fixed missing OS check for Android-specific code
This commit is contained in:
parent
623bfd31eb
commit
1e48be1abf
@ -345,6 +345,7 @@ class SidebandApp(MDApp):
|
||||
|
||||
self.announces_view = None
|
||||
|
||||
if RNS.vendor.platformutils.is_android():
|
||||
ActivityInfo = autoclass('android.content.pm.ActivityInfo')
|
||||
activity = autoclass('org.kivy.android.PythonActivity').mActivity
|
||||
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED)
|
||||
|
Loading…
Reference in New Issue
Block a user