Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable orientation and window option for service_only bootstrap #912

Merged
merged 1 commit into from Jun 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 11 additions & 10 deletions buildozer/targets/android.py
Expand Up @@ -981,16 +981,17 @@ def build_package(self):
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)]

# fullscreen ?
fullscreen = config.getbooldefault('app', 'fullscreen', True)
if not fullscreen:
build_cmd += [("--window", )]
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", )]

# wakelock ?
wakelock = config.getbooldefault('app', 'android.wakelock', False)
Expand Down