Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

Commit

Permalink
Adding flags capability
Browse files Browse the repository at this point in the history
  • Loading branch information
darryncampbell committed Mar 5, 2018
1 parent 3d1e2e6 commit b22421d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/android/IntentShim.java
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,16 @@ private Intent populateIntent(JSONObject obj, CallbackContext callbackContext) t
if (packageAssociated != null)
i.setPackage(packageAssociated);

JSONArray flags = obj.has("flags") ? obj.getJSONArray("flags") : null;
if (flags != null)
{
int length = flags.length();
for (int k = 0; k < length; k++)
{
i.addFlags(flags.getInt(k));
}
}

if (bundle != null)
i.putExtra(bundleKey, bundle);

Expand Down

0 comments on commit b22421d

Please sign in to comment.