Skip to content

Commit

Permalink
allow setting the value for android:allowBackup
Browse files Browse the repository at this point in the history
  • Loading branch information
tshirtman authored and AndreMiras committed Nov 4, 2018
1 parent 0092491 commit e6cf4a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions doc/source/recipes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ be compiled for Android with the correct architecture.

python-for-android comes with many recipes for popular modules. No
recipe is necessary for Python modules which have no
compiled components; these are installed automaticaly via pip.

compiled components; these are installed automatically via pip.
If you are new to building recipes, it is recommended that you first
read all of this page, at least up to the Recipe reference
documentation. The different recipe sections include a number of
Expand Down
2 changes: 2 additions & 0 deletions pythonforandroid/bootstraps/sdl2/build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,8 @@ def parse_args(args=None):
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.')
ap.add_argument('--allow-backup', dest='allow_backup', default='true',
help="if set to 'false', then android won't backup the application.")

if args is None:
args = sys.argv[1:]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
-->
<application android:label="@string/app_name"
android:icon="@drawable/icon"
android:allowBackup="true"
android:allowBackup="{{ args.allow_backup }}"
android:theme="@android:style/Theme.NoTitleBar{% if not args.window %}.Fullscreen{% endif %}"
android:hardwareAccelerated="true" >

Expand Down

0 comments on commit e6cf4a9

Please sign in to comment.