Skip to content

Commit

Permalink
[FIX] Missing callback listener for registerView from PR #74.
Browse files Browse the repository at this point in the history
  • Loading branch information
Renemari Padillo committed Mar 21, 2016
1 parent 486bb27 commit c8f9a69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/android/io/branch/BranchSDK.java
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public boolean execute(String action, JSONArray args, CallbackContext callbackCo
}
} else if (action.equals("registerView")) {
if (args.length() == 1) {
this.registerView(args.getInt(0));
this.registerView(args.getInt(0), callbackContext);
}
return true;
} else if (action.equals("showShareSheet")) {
Expand Down Expand Up @@ -521,14 +521,14 @@ private BranchLinkProperties createLinkProperties(JSONObject options, JSONObject
*
* @param instanceIdx The instance index from branchObjects array
*/
private void registerView(int instanceIdx)
private void registerView(int instanceIdx, CallbackContext callbackContext)
{

Log.d(LCAT, "start registerView()");

BranchUniversalObject branchObj = (BranchUniversalObject)this.branchObjects.get(instanceIdx);

branchObj.registerView();
branchObj.registerView(new RegisterViewStatusListener(callbackContext));

}

Expand Down

0 comments on commit c8f9a69

Please sign in to comment.