Skip to content

Commit

Permalink
[FIX] Android build error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Renemari Padillo committed Aug 1, 2016
1 parent f464428 commit 23f55eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/android/io/branch/BranchSDK.java
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ public LoadRewardsListener(String bucket, CallbackContext callbackContext, Branc
public LoadRewardsListener(CallbackContext callbackContext, Branch instance) {
this._callbackContext = callbackContext;
this._instance = instance;
this._bucket = '';
this._bucket = "";
}

// Listener that implements BranchReferralStateChangedListener for loadRewards
Expand All @@ -839,7 +839,7 @@ public void onStateChanged(boolean changed, BranchError error) {

int credits = 0;

if (this._bucket && this._bucket.length()) {
if (this._bucket.length() > 0) {
credits = this._instance.getCreditsForBucket(this._bucket);
} else {
credits = this._instance.getCredits();
Expand Down

0 comments on commit 23f55eb

Please sign in to comment.