diff --git a/src/android/startApp.java b/src/android/startApp.java index ac0039d..fc31806 100644 --- a/src/android/startApp.java +++ b/src/android/startApp.java @@ -273,7 +273,7 @@ public void start(JSONArray args, CallbackContext callback) { callbackContext = callback; cordova.getActivity().startActivityForResult(LaunchIntent, 1); } - if(params.has("intentstart") && "sendBroadcast".equals(params.getString("intentstart"))) { + else if(params.has("intentstart") && "sendBroadcast".equals(params.getString("intentstart"))) { cordova.getActivity().sendBroadcast(LaunchIntent); } else { @@ -407,4 +407,4 @@ public void onActivityResult(int requestCode, int resultCode, Intent intent) { callbackContext.sendPluginResult(pluginResult); } } -} \ No newline at end of file +}