Fixed a bug with widgets using filterwithcustomintent

pull/14/head
Sam Bosley 13 years ago
parent 6ebe45df18
commit 978aa11fd1

@ -346,6 +346,10 @@ public class TasksWidget extends AppWidgetProvider {
ComponentName component = ComponentName.unflattenFromString(customComponent);
filter = new FilterWithCustomIntent(filter.title, filter.title, filter.getSqlQuery(), filter.valuesForNewTasks);
((FilterWithCustomIntent) filter).customTaskList = component;
String serializedExtras = Preferences.getStringValue(WidgetConfigActivity.PREF_CUSTOM_EXTRAS
+ widgetId);
Bundle extras = AndroidUtilities.bundleFromSerializedString(serializedExtras);
((FilterWithCustomIntent) filter).customExtras = extras;
}
return filter;

Loading…
Cancel
Save