Skip to content

Commit

Permalink
fix(BranchSDK): Make it backward compatible
Browse files Browse the repository at this point in the history
Take the third parameter and put it into the strings object so that even passing a single string it

will be used in the display

none
  • Loading branch information
odaumas committed Sep 15, 2016
1 parent 30d3e84 commit f25a972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/android/io/branch/BranchSDK.java
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ public void run() {
if (userLocalization != null && userLocalization instanceof JSONObject) {
localization = (JSONObject) userLocalization;
} else {
localization.put("shareText", "This stuff is awesome:");
localization.put("shareText", this.args.getString(3) != null ? this.args.getString(3) : "This stuff is awesome: ");
localization.put("shareTitle", "Check this out!");
localization.put("copyToClipboard", "Copy");
localization.put("clipboardSuccess", "Added to clipboard");
Expand Down

0 comments on commit f25a972

Please sign in to comment.