forked from organicmaps/organicmaps
[android] Added specific handling of 'User_cancelled' error while ads payment
This commit is contained in:
parent
f56772a18c
commit
1602699a5a
1 changed files with 6 additions and 0 deletions
|
@ -127,6 +127,12 @@ public class PlayStoreBillingManager implements BillingManager<PlayStoreBillingC
|
|||
@Override
|
||||
public void onPurchasesUpdated(int responseCode, @Nullable List<Purchase> purchases)
|
||||
{
|
||||
if (responseCode == BillingResponse.USER_CANCELED)
|
||||
{
|
||||
LOGGER.i(TAG, "Billing cancelled by user");
|
||||
return;
|
||||
}
|
||||
|
||||
if (responseCode != BillingResponse.OK || purchases == null || purchases.isEmpty())
|
||||
{
|
||||
LOGGER.e(TAG, "Billing failed. Response code: " + responseCode);
|
||||
|
|
Loading…
Add table
Reference in a new issue