From 7a49a7dd892544cdbb9b7f5187bc7064db4c7c27 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 6 Aug 2019 10:52:32 +0200 Subject: [PATCH] Updated widget after activating pro features --- app/src/main/java/eu/faircode/email/ActivityBilling.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/ActivityBilling.java b/app/src/main/java/eu/faircode/email/ActivityBilling.java index afeb676186..0a592d0bc4 100644 --- a/app/src/main/java/eu/faircode/email/ActivityBilling.java +++ b/app/src/main/java/eu/faircode/email/ActivityBilling.java @@ -214,8 +214,11 @@ abstract class ActivityBilling extends ActivityBase implements PurchasesUpdatedL .putBoolean("pro", true) .putBoolean("play_store", false) .apply(); + Log.i("IAB response valid"); ToastEx.makeText(this, R.string.title_pro_valid, Toast.LENGTH_LONG).show(); + + WidgetUnified.update(this); } else { Log.i("IAB response invalid"); ToastEx.makeText(this, R.string.title_pro_invalid, Toast.LENGTH_LONG).show(); @@ -383,6 +386,8 @@ abstract class ActivityBilling extends ActivityBase implements PurchasesUpdatedL } editor.apply(); + + WidgetUnified.update(this); } if (query.size() > 0) @@ -446,6 +451,8 @@ abstract class ActivityBilling extends ActivityBase implements PurchasesUpdatedL for (IBillingListener listener : listeners) listener.onPurchased(purchase.getSku()); + + WidgetUnified.update(ActivityBilling.this); } else notifyError(text); }