mirror of
https://github.com/markqvist/Sideband.git
synced 2024-10-01 03:15:37 -04: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