Merge pull request #912 from zworkb/service_only

disable orientation and window option for service_only bootstrap
This commit is contained in:
Andre Miras 2019-06-16 22:41:07 +02:00 committed by GitHub
commit 5ede887a4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -981,16 +981,17 @@ class TargetAndroid(Target):
build_cmd += [("--ouya-icon", join(self.buildozer.root_dir,
ouya_icon))]
# add orientation
orientation = config.getdefault('app', 'orientation', 'landscape')
if orientation == 'all':
orientation = 'sensor'
build_cmd += [("--orientation", orientation)]
if config.getdefault('app','p4a.bootstrap','sdl2') != 'service_only':
# add orientation
orientation = config.getdefault('app', 'orientation', 'landscape')
if orientation == 'all':
orientation = 'sensor'
build_cmd += [("--orientation", orientation)]
# fullscreen ?
fullscreen = config.getbooldefault('app', 'fullscreen', True)
if not fullscreen:
build_cmd += [("--window", )]
# fullscreen ?
fullscreen = config.getbooldefault('app', 'fullscreen', True)
if not fullscreen:
build_cmd += [("--window", )]
# wakelock ?
wakelock = config.getbooldefault('app', 'android.wakelock', False)