From 717c9ac3a3bbb68c683b01e679e2156c419831fc Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 16 May 2021 09:49:22 +0200 Subject: [PATCH] Added logging --- app/src/main/java/eu/faircode/email/Widget.java | 2 ++ app/src/main/java/eu/faircode/email/WidgetUnified.java | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/Widget.java b/app/src/main/java/eu/faircode/email/Widget.java index 8be07ab493..ec25b1424d 100644 --- a/app/src/main/java/eu/faircode/email/Widget.java +++ b/app/src/main/java/eu/faircode/email/Widget.java @@ -169,6 +169,8 @@ public class Widget extends AppWidgetProvider { } static void update(Context context) { + EntityLog.log(context, "Widget update"); + AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context); if (appWidgetManager == null) { Log.w("No app widget manager"); // Fairphone FP2 diff --git a/app/src/main/java/eu/faircode/email/WidgetUnified.java b/app/src/main/java/eu/faircode/email/WidgetUnified.java index 355afb7030..3be47d8c75 100644 --- a/app/src/main/java/eu/faircode/email/WidgetUnified.java +++ b/app/src/main/java/eu/faircode/email/WidgetUnified.java @@ -169,7 +169,8 @@ public class WidgetUnified extends AppWidgetProvider { } static void updateData(Context context) { - Log.i("Widget unified update"); + EntityLog.log(context, "Widget unified update"); + if (ActivityBilling.isPro(context)) { AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context); if (appWidgetManager == null) {