From cd74c63b1c2996b853e059f47d62c1fe73f9e62b Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 22 Aug 2021 13:56:32 +0200 Subject: [PATCH] Small improvements --- app/src/main/java/eu/faircode/email/ActivityWidget.java | 2 +- app/src/main/java/eu/faircode/email/ActivityWidgetSync.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityWidget.java b/app/src/main/java/eu/faircode/email/ActivityWidget.java index cce395d6d5..422730a0fa 100644 --- a/app/src/main/java/eu/faircode/email/ActivityWidget.java +++ b/app/src/main/java/eu/faircode/email/ActivityWidget.java @@ -76,7 +76,7 @@ public class ActivityWidget extends ActivityBase { appWidgetId = extras.getInt( AppWidgetManager.EXTRA_APPWIDGET_ID, AppWidgetManager.INVALID_APPWIDGET_ID); - SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ActivityWidget.this); + SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); long account = prefs.getLong("widget." + appWidgetId + ".account", -1L); boolean semi = prefs.getBoolean("widget." + appWidgetId + ".semi", true); int background = prefs.getInt("widget." + appWidgetId + ".background", Color.TRANSPARENT); diff --git a/app/src/main/java/eu/faircode/email/ActivityWidgetSync.java b/app/src/main/java/eu/faircode/email/ActivityWidgetSync.java index 8ab6c9288b..883c84aa0d 100644 --- a/app/src/main/java/eu/faircode/email/ActivityWidgetSync.java +++ b/app/src/main/java/eu/faircode/email/ActivityWidgetSync.java @@ -55,7 +55,7 @@ public class ActivityWidgetSync extends ActivityBase { appWidgetId = extras.getInt( AppWidgetManager.EXTRA_APPWIDGET_ID, AppWidgetManager.INVALID_APPWIDGET_ID); - SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ActivityWidgetSync.this); + SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); boolean semi = prefs.getBoolean("widget." + appWidgetId + ".semi", true); int background = prefs.getInt("widget." + appWidgetId + ".background", Color.TRANSPARENT);