Simplification

pull/159/head
M66B 6 years ago
parent 748d959a7d
commit 680149b63d

@ -62,8 +62,7 @@ public class WidgetUnified extends AppWidgetProvider {
static void update(Context context) { static void update(Context context) {
Log.i("Widget unified update"); Log.i("Widget unified update");
AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context); AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context);
int[] appWidgetIds = AppWidgetManager.getInstance(context).getAppWidgetIds( int[] appWidgetIds = appWidgetManager.getAppWidgetIds(new ComponentName(context, WidgetUnified.class));
new ComponentName(context, WidgetUnified.class));
appWidgetManager.notifyAppWidgetViewDataChanged(appWidgetIds, R.id.lv); appWidgetManager.notifyAppWidgetViewDataChanged(appWidgetIds, R.id.lv);
} }
} }

Loading…
Cancel
Save