Skip to content

Commit ca4d622

Browse files
fix enablelogging command string
1 parent b35329d commit ca4d622

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/android/io/branch/BranchSDK.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public boolean execute(String action, JSONArray args, CallbackContext callbackCo
119119

120120
Runnable r = new RunnableThread(action, args, callbackContext);
121121

122-
if (action.equals("setLogging")) {
122+
if (action.equals("enableLogging")) {
123123
cordova.getActivity().runOnUiThread(r);
124124
return true;
125125
} else if (action.equals("setCookieBasedMatching")) {
@@ -607,7 +607,7 @@ private void setCookieBasedMatching(String linkDomain, CallbackContext callbackC
607607
* @param isEnable A {@link Boolean} value to enable/disable logging
608608
* @param callbackContext A callback to execute at the end of this method
609609
*/
610-
private void setLogging(boolean isEnable, CallbackContext callbackContext) {
610+
private void enableLogging(boolean isEnable, CallbackContext callbackContext) {
611611
this.activity = this.cordova.getActivity();
612612
if (isEnable == true) {
613613
Branch.enableLogging();
@@ -1233,8 +1233,8 @@ public void run() {
12331233
try {
12341234
Log.d(LCAT, "Runnable: " + this.action);
12351235

1236-
if (this.action.equals("setLogging")) {
1237-
setLogging(this.args.getBoolean(0), this.callbackContext);
1236+
if (this.action.equals("enableLogging")) {
1237+
enableLogging(this.args.getBoolean(0), this.callbackContext);
12381238
} else if (this.action.equals("setCookieBasedMatching")) {
12391239
setCookieBasedMatching(this.args.getString(0), this.callbackContext);
12401240
} else if (this.action.equals("disableTracking")) {

0 commit comments

Comments
 (0)