Merge pull request #912 from zworkb/service_only
disable orientation and window option for service_only bootstrap
This commit is contained in:
commit
5ede887a4e
1 changed files with 10 additions and 9 deletions
|
@ -981,16 +981,17 @@ class TargetAndroid(Target):
|
||||||
build_cmd += [("--ouya-icon", join(self.buildozer.root_dir,
|
build_cmd += [("--ouya-icon", join(self.buildozer.root_dir,
|
||||||
ouya_icon))]
|
ouya_icon))]
|
||||||
|
|
||||||
# add orientation
|
if config.getdefault('app','p4a.bootstrap','sdl2') != 'service_only':
|
||||||
orientation = config.getdefault('app', 'orientation', 'landscape')
|
# add orientation
|
||||||
if orientation == 'all':
|
orientation = config.getdefault('app', 'orientation', 'landscape')
|
||||||
orientation = 'sensor'
|
if orientation == 'all':
|
||||||
build_cmd += [("--orientation", orientation)]
|
orientation = 'sensor'
|
||||||
|
build_cmd += [("--orientation", orientation)]
|
||||||
|
|
||||||
# fullscreen ?
|
# fullscreen ?
|
||||||
fullscreen = config.getbooldefault('app', 'fullscreen', True)
|
fullscreen = config.getbooldefault('app', 'fullscreen', True)
|
||||||
if not fullscreen:
|
if not fullscreen:
|
||||||
build_cmd += [("--window", )]
|
build_cmd += [("--window", )]
|
||||||
|
|
||||||
# wakelock ?
|
# wakelock ?
|
||||||
wakelock = config.getbooldefault('app', 'android.wakelock', False)
|
wakelock = config.getbooldefault('app', 'android.wakelock', False)
|
||||||
|
|
Loading…
Reference in a new issue