Skip to content

Commit

Permalink
Merge pull request #130 from Dragas/master
Browse files Browse the repository at this point in the history
fixes an issue where `intent` field would be interpretted as `action` field
  • Loading branch information
lampaa authored Mar 5, 2019
2 parents a13e0a5 + 40ddc4b commit 38b799b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/android/startApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,12 @@ public void start(JSONArray args, CallbackContext callback) {
* set intent
* http://developer.android.com/reference/android/content/Intent.html (java.lang.String)
*/
else if(params.has("intent")) {
LaunchIntent = new Intent(params.getString("intent"));
}
else {
LaunchIntent = new Intent();
if(params.has("intent")) {
ComponentName ci = new ComponentName(cordova.getActivity().getPackageName(), params.getString("intent"));
it.setComponent(ci);
}
}


Expand Down

0 comments on commit 38b799b

Please sign in to comment.