Skip to content

Commit

Permalink
Fix returned error code when already owned
Browse files Browse the repository at this point in the history
Fixes #234
  • Loading branch information
NGumby committed Apr 13, 2020
1 parent 012ee6c commit 180f573
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/Plugin.InAppBilling.Android/InAppBillingImplementation.cs
Expand Up @@ -506,16 +506,10 @@ public static void HandleActivityResult(int requestCode, Result resultCode, Inte
return;
}

if(resultCode == Result.Canceled && tcsPurchase != null && !tcsPurchase.Task.IsCompleted)
{
tcsPurchase.SetException(new InAppBillingPurchaseException(PurchaseError.UserCancelled));
return;
}

if(data == null)
{
return;
}
if (data == null)
{
return;
}

int responseCode = data.GetIntExtra(RESPONSE_CODE, 0);

Expand Down

0 comments on commit 180f573

Please sign in to comment.