mirror of
https://github.com/markqvist/Sideband.git
synced 2024-12-26 07:59:23 -05:00
Fix orientation lock not being obeyed on Android
This commit is contained in:
parent
7039c0330f
commit
3383ac39cc
@ -343,6 +343,10 @@ class SidebandApp(MDApp):
|
||||
|
||||
self.announces_view = None
|
||||
|
||||
ActivityInfo = autoclass('android.content.pm.ActivityInfo')
|
||||
activity = autoclass('org.kivy.android.PythonActivity').mActivity
|
||||
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED)
|
||||
|
||||
screen = Builder.load_string(root_layout)
|
||||
|
||||
return screen
|
||||
|
Loading…
Reference in New Issue
Block a user