Last active
December 7, 2019 08:03
-
-
Save abbas-oveissi/588b733e926037570f532d43bd583874 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void buyFullVersion() { | |
mHelper.launchPurchaseFlow(this, SKU_FULL_VERSION, 1, new IabHelper.OnIabPurchaseFinishedListener() { | |
@Override | |
public void onIabPurchaseFinished(IabResult result, Purchase info) { | |
if (result.isFailure()) { | |
Toast.makeText(DetailActivity.this, R.string.purchasing_error, Toast.LENGTH_SHORT).show(); | |
return; | |
} else if (info.getSku().equals(SKU_FULL_VERSION)) { | |
bookmarkMovie(); | |
} | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment