From 3dbb121353cb48e598336aa60f6150b826fe5628 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 11 Aug 2023 07:53:14 +0200 Subject: [PATCH] Cache Play Store purchase status for 3 days --- app/src/play/java/eu/faircode/email/ActivityBilling.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/play/java/eu/faircode/email/ActivityBilling.java b/app/src/play/java/eu/faircode/email/ActivityBilling.java index e23969ed31..6877f3bb85 100644 --- a/app/src/play/java/eu/faircode/email/ActivityBilling.java +++ b/app/src/play/java/eu/faircode/email/ActivityBilling.java @@ -81,8 +81,8 @@ public class ActivityBilling extends ActivityBase implements static final String ACTION_PURCHASE_ERROR = BuildConfig.APPLICATION_ID + ".ACTION_PURCHASE_ERROR"; private static final String SKU_TEST = "android.test.purchased"; - private static final long MAX_SKU_CACHE_DURATION = 24 * 3600 * 1000L; // milliseconds - private static final long MAX_SKU_NOACK_DURATION = 24 * 3600 * 1000L; // milliseconds + private static final long MAX_SKU_CACHE_DURATION = 3 * 24 * 3600 * 1000L; // milliseconds + private static final long MAX_SKU_NOACK_DURATION = 3 * 24 * 3600 * 1000L; // milliseconds @Override @SuppressLint("MissingSuperCall")