|
|
@ -140,10 +140,16 @@ public class TasksWidget extends AppWidgetProvider {
|
|
|
|
if(intent != null)
|
|
|
|
if(intent != null)
|
|
|
|
extrasId = intent.getIntExtra(EXTRA_WIDGET_ID, extrasId);
|
|
|
|
extrasId = intent.getIntExtra(EXTRA_WIDGET_ID, extrasId);
|
|
|
|
if(extrasId == AppWidgetManager.INVALID_APPWIDGET_ID) {
|
|
|
|
if(extrasId == AppWidgetManager.INVALID_APPWIDGET_ID) {
|
|
|
|
for(int id : manager.getAppWidgetIds(thisWidget)) {
|
|
|
|
int[] ids;
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
ids = manager.getAppWidgetIds(thisWidget);
|
|
|
|
|
|
|
|
for(int id : ids) {
|
|
|
|
RemoteViews updateViews = buildUpdate(this, id);
|
|
|
|
RemoteViews updateViews = buildUpdate(this, id);
|
|
|
|
manager.updateAppWidget(id, updateViews);
|
|
|
|
manager.updateAppWidget(id, updateViews);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
|
|
|
|
// "System server dead" was sometimes thrown here by the OS. Abort if that happens
|
|
|
|
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
int id = extrasId;
|
|
|
|
int id = extrasId;
|
|
|
|
RemoteViews updateViews = buildUpdate(this, id);
|
|
|
|
RemoteViews updateViews = buildUpdate(this, id);
|
|
|
|