Last active
December 7, 2019 09:56
-
-
Save abbas-oveissi/d799168cddb0dcf0b777f772f1479e09 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 consumeDownloadPurchase(Purchase purchase) { | |
mHelper.consumeAsync(purchase, new IabHelper.OnConsumeFinishedListener() { | |
@Override | |
public void onConsumeFinished(Purchase purchase, IabResult result) { | |
if (result.isFailure()) { | |
Toast.makeText(DetailActivity.this, R.string.purchasing_error, Toast.LENGTH_SHORT).show(); | |
return; | |
} | |
startDownloading(); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment