From f25a972b97a4673ba1d53a0c5a40d776a021141a Mon Sep 17 00:00:00 2001 From: odaumas Date: Thu, 15 Sep 2016 15:24:44 +0200 Subject: [PATCH] fix(BranchSDK): Make it backward compatible 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 --- src/android/io/branch/BranchSDK.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/io/branch/BranchSDK.java b/src/android/io/branch/BranchSDK.java index b98f33ae..9e27f407 100644 --- a/src/android/io/branch/BranchSDK.java +++ b/src/android/io/branch/BranchSDK.java @@ -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");