Skip to content

Commit

Permalink
Merge pull request #155 from SametKahraman/patch-1
Browse files Browse the repository at this point in the history
Fix for #154
  • Loading branch information
lampaa authored Nov 27, 2020
2 parents ddba864 + 0641b2b commit 2c3dba7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/android/startApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -407,4 +407,4 @@ public void onActivityResult(int requestCode, int resultCode, Intent intent) {
callbackContext.sendPluginResult(pluginResult);
}
}
}
}

0 comments on commit 2c3dba7

Please sign in to comment.