From 7b38c478bb3529f05c47b8bffea137aca8aa41fd Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 3 Jan 2025 16:25:39 +0100 Subject: [PATCH] Improved IAB error messages --- app/src/play/java/eu/faircode/email/ActivityBilling.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/play/java/eu/faircode/email/ActivityBilling.java b/app/src/play/java/eu/faircode/email/ActivityBilling.java index 6fa6904ca1..96b7bbfa36 100644 --- a/app/src/play/java/eu/faircode/email/ActivityBilling.java +++ b/app/src/play/java/eu/faircode/email/ActivityBilling.java @@ -608,8 +608,11 @@ public class ActivityBilling extends ActivityBase implements else { message = getBillingResponseText(result); - if (result.getResponseCode() == BillingClient.BillingResponseCode.BILLING_UNAVAILABLE) + if (result.getResponseCode() == BillingClient.BillingResponseCode.ERROR || + result.getResponseCode() == BillingClient.BillingResponseCode.BILLING_UNAVAILABLE) message += " Is the Play Store app logged into the account used to install the app?"; + else if (result.getResponseCode() == BillingClient.BillingResponseCode.NETWORK_ERROR) + message += " Is there a working internet connection?"; String debug = result.getDebugMessage(); if (!TextUtils.isEmpty(debug))