Skip to content

Commit

Permalink
compilation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aaustin committed Dec 21, 2015
1 parent 5c133f6 commit db7ab58
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions cordova-src/android/BranchDevice.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private void readAndStripParam(Activity activity) {
String pushIdentifier = activity.getIntent().getExtras().getString("branch");
if (pushIdentifier != null && pushIdentifier.length() > 0) {
pushLinkIdentifier = pushIdentifier;
return false;
return;
}
}

Expand All @@ -102,21 +102,18 @@ private void readAndStripParam(Activity activity) {
}
Uri newData = Uri.parse(uriString.replaceFirst(paramString, ""));
activity.getIntent().setData(newData);
return true;
} else {
// Check if the clicked url is an app link pointing to this app
String scheme = data.getScheme();
if (scheme != null) {
if ((scheme.equalsIgnoreCase("http") || scheme.equalsIgnoreCase("https"))
&& data.getHost() != null && data.getHost().length() > 0) {
appLinkIdentifier = data.toString();
return false;
}

}
}
}
return false;
}

@Override
Expand Down Expand Up @@ -193,7 +190,7 @@ private void getInstallData(JSONArray args, CallbackContext callbackContext) {
}
if (pushLinkIdentifier != null) {
installPost.put("push_identifier", pushLinkIdentifier);
pushIdentifier = null;
pushLinkIdentifier = null;
}
if (appLinkIdentifier != null) {
installPost.put("android_app_link_url", appLinkIdentifier);
Expand Down Expand Up @@ -239,7 +236,7 @@ private void getOpenData(JSONArray args, CallbackContext callbackContext) {
}
if (pushLinkIdentifier != null) {
openPost.put("push_identifier", pushLinkIdentifier);
pushIdentifier = null;
pushLinkIdentifier = null;
}
if (appLinkIdentifier != null) {
openPost.put("android_app_link_url", appLinkIdentifier);
Expand Down

0 comments on commit db7ab58

Please sign in to comment.