From 1123e158bc6824ef41f236e9bf8b94913a5ca56b Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 16 May 2020 19:45:06 +0200 Subject: [PATCH] Skip reporting IAB canceled --- app/src/main/java/eu/faircode/email/ActivityBilling.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityBilling.java b/app/src/main/java/eu/faircode/email/ActivityBilling.java index 8a2e37ee2c..66b153bca4 100644 --- a/app/src/main/java/eu/faircode/email/ActivityBilling.java +++ b/app/src/main/java/eu/faircode/email/ActivityBilling.java @@ -515,8 +515,9 @@ public class ActivityBilling extends ActivityBase implements PurchasesUpdatedLis EntityLog.log(this, message); - for (IBillingListener listener : listeners) - listener.onError(message); + if (result.getResponseCode() != BillingClient.BillingResponseCode.USER_CANCELED) + for (IBillingListener listener : listeners) + listener.onError(message); } private static String getBillingResponseText(BillingResult result) {