From 680149b63d0455098928db52f7b5b9b7d40b6e35 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 25 Jul 2019 17:32:42 +0200 Subject: [PATCH] Simplification --- app/src/main/java/eu/faircode/email/WidgetUnified.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/WidgetUnified.java b/app/src/main/java/eu/faircode/email/WidgetUnified.java index 4d706cf73a..dc23aa84a9 100644 --- a/app/src/main/java/eu/faircode/email/WidgetUnified.java +++ b/app/src/main/java/eu/faircode/email/WidgetUnified.java @@ -62,8 +62,7 @@ public class WidgetUnified extends AppWidgetProvider { static void update(Context context) { Log.i("Widget unified update"); AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context); - int[] appWidgetIds = AppWidgetManager.getInstance(context).getAppWidgetIds( - new ComponentName(context, WidgetUnified.class)); + int[] appWidgetIds = appWidgetManager.getAppWidgetIds(new ComponentName(context, WidgetUnified.class)); appWidgetManager.notifyAppWidgetViewDataChanged(appWidgetIds, R.id.lv); } }