Fixed a bug where intent wouldn't be set up with correct filter when toggling subtasks:

pull/14/head
Sam Bosley 14 years ago
parent a1e71d9bbb
commit 72a52cb436

@ -205,6 +205,10 @@ public class AstridActivity extends FragmentActivity
public final void setupTasklistFragmentWithFilterAndCustomTaskList(Filter filter, Class<?> customTaskList) {
Class<?> component = customTaskList;
if (filter == null)
getIntent().removeExtra(TaskListFragment.TOKEN_FILTER);
else
getIntent().putExtra(TaskListFragment.TOKEN_FILTER, filter);
if (filter instanceof FilterWithCustomIntent) {
try {
component = Class.forName(((FilterWithCustomIntent) filter).customTaskList.getClassName());

Loading…
Cancel
Save