From e5edb6b230e4c9ec73db45f03b94a60e6d7c2f36 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 31 May 2019 18:14:20 +0200 Subject: [PATCH] Log purchase time --- app/src/main/java/eu/faircode/email/ActivityBilling.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityBilling.java b/app/src/main/java/eu/faircode/email/ActivityBilling.java index 420accce70..af9851cf33 100644 --- a/app/src/main/java/eu/faircode/email/ActivityBilling.java +++ b/app/src/main/java/eu/faircode/email/ActivityBilling.java @@ -61,6 +61,7 @@ import java.security.PublicKey; import java.security.Signature; import java.security.spec.X509EncodedKeySpec; import java.util.ArrayList; +import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -302,7 +303,8 @@ abstract class ActivityBilling extends ActivityBase implements PurchasesUpdatedL try { query.remove(purchase.getSku()); boolean purchased = (purchase.getPurchaseState() == Purchase.PurchaseState.PURCHASED); - Log.i("IAB SKU=" + purchase.getSku() + " purchased=" + purchased); + long time = purchase.getPurchaseTime(); + Log.i("IAB SKU=" + purchase.getSku() + " purchased=" + purchased + " time=" + new Date(time)); //if (new Date().getTime() - purchase.getPurchaseTime() > 3 * 60 * 1000L) { // consumePurchase(purchase);