|
|
@ -62,9 +62,11 @@ public class ListWidgetProvider extends AppWidgetProvider { |
|
|
|
// Refresh a specific app widget
|
|
|
|
// Refresh a specific app widget
|
|
|
|
if (intent.hasExtra(EXTRA_REFRESH)) { |
|
|
|
if (intent.hasExtra(EXTRA_REFRESH)) { |
|
|
|
// Manually requested a refresh for the app widget of which the ID was supplied
|
|
|
|
// Manually requested a refresh for the app widget of which the ID was supplied
|
|
|
|
AppWidgetManager.getInstance(context).updateAppWidget(appWidgetId, |
|
|
|
RemoteViews views = buildRemoteViews(context, appWidgetId, applicationSettings.getWidgetConfig(appWidgetId)); |
|
|
|
buildRemoteViews(context, appWidgetId, applicationSettings.getWidgetConfig(appWidgetId))); |
|
|
|
if (views != null) { |
|
|
|
|
|
|
|
AppWidgetManager.getInstance(context).updateAppWidget(appWidgetId, views); |
|
|
|
AppWidgetManager.getInstance(context).notifyAppWidgetViewDataChanged(appWidgetId, R.id.torrents_list); |
|
|
|
AppWidgetManager.getInstance(context).notifyAppWidgetViewDataChanged(appWidgetId, R.id.torrents_list); |
|
|
|
|
|
|
|
} |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|