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,9 +345,10 @@ class SidebandApp(MDApp):
|
|||||||
|
|
||||||
self.announces_view = None
|
self.announces_view = None
|
||||||
|
|
||||||
ActivityInfo = autoclass('android.content.pm.ActivityInfo')
|
if RNS.vendor.platformutils.is_android():
|
||||||
activity = autoclass('org.kivy.android.PythonActivity').mActivity
|
ActivityInfo = autoclass('android.content.pm.ActivityInfo')
|
||||||
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED)
|
activity = autoclass('org.kivy.android.PythonActivity').mActivity
|
||||||
|
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED)
|
||||||
|
|
||||||
screen = Builder.load_string(root_layout)
|
screen = Builder.load_string(root_layout)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user