Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pythonforandroid/bootstraps/sdl2/build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ def make_package(args):

args.add_activity = args.add_activity or []

args.activity_launch_mode = args.activity_launch_mode or ''

if args.extra_source_dirs:
esd = []
for spec in args.extra_source_dirs:
Expand Down Expand Up @@ -514,6 +516,8 @@ def parse_args(args=None):
'the appropriate environment variables.'))
ap.add_argument('--add-activity', dest='add_activity', action='append',
help='Add this Java class as an Activity to the manifest.')
ap.add_argument('--activity-launch-mode', dest='activity_launch_mode',
help='Set the launch mode of the main activity in the manifest.')

if args is None:
args = sys.argv[1:]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
android:label="@string/app_name"
android:configChanges="keyboardHidden|orientation{% if args.min_sdk_version >= 13 %}|screenSize{% endif %}"
android:screenOrientation="{{ args.orientation }}"
{% if args.activity_launch_mode %}
android:launchMode="{{ args.activity_launch_mode }}"
{% endif %}
>

{% if args.launcher %}
Expand Down