use of org.fairphone.peaceofmind.widget.WidgetProvider in project Fairphone by Kwamecorp.
the class PeaceOfMindBroadCastReceiver method updateWidget.
private void updateWidget(Context context) {
AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context);
int[] appWidgetIds = appWidgetManager.getAppWidgetIds(new ComponentName(context, WidgetProvider.class));
if (appWidgetIds.length > 0) {
new WidgetProvider().onUpdate(context, appWidgetManager, appWidgetIds);
}
}
Aggregations