File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
pythonforandroid/bootstraps/common/build Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -336,9 +336,11 @@ def make_package(args):
336336 with open (args .intent_filters ) as fd :
337337 args .intent_filters = fd .read ()
338338
339- # if get_bootstrap_name() == "sdl2":
340- args .add_activity = args .add_activity or []
341- args .activity_launch_mode = args .activity_launch_mode or ''
339+ if not args .add_activity :
340+ args .add_activity = []
341+
342+ if not args .activity_launch_mode :
343+ args .activity_launch_mode = ''
342344
343345 if args .extra_source_dirs :
344346 esd = []
@@ -687,7 +689,7 @@ def _read_configuration():
687689 if args .meta_data is None :
688690 args .meta_data = []
689691
690- if ( not hasattr ( args , 'services' )) or args . services is None :
692+ if getattr ( args , 'services' , None ) is None :
691693 args .services = []
692694
693695 if args .try_system_python_compile :
You can’t perform that action at this time.
0 commit comments