Skip to content

Commit

Permalink
catch iap exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
naman14 committed Nov 13, 2016
1 parent c08fe03 commit 17ff806
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,12 @@ private void setupNavigationIcons(NavigationView navigationView) {
navigationView.getMenu().findItem(R.id.nav_donate).setIcon(R.drawable.payment_white);
}

if(!BillingProcessor.isIabServiceAvailable(this)) {
navigationView.getMenu().removeItem(R.id.nav_donate);
try {
if (!BillingProcessor.isIabServiceAvailable(this)) {
navigationView.getMenu().removeItem(R.id.nav_donate);
}
} catch (Exception e) {
e.printStackTrace();
}

}
Expand Down

0 comments on commit 17ff806

Please sign in to comment.