Fixed a bug where task list wouldn't refresh after task edit on phones

pull/14/head
Sam Bosley 13 years ago
parent 10e0cda710
commit 417b5b517c

@ -392,9 +392,8 @@ public class TaskListActivity extends AstridActivity implements MainMenuListener
} }
if (data.getBooleanExtra(TaskEditFragment.TOKEN_TAGS_CHANGED, false)) if (data.getBooleanExtra(TaskEditFragment.TOKEN_TAGS_CHANGED, false))
tagsChanged(true); tagsChanged(true);
} else {
tlf.refresh();
} }
tlf.refresh();
} }
} }

@ -1594,7 +1594,7 @@ public class TaskListFragment extends ListFragment implements OnScrollListener,
intent = new Intent(getActivity(), TaskEditActivity.class); intent = new Intent(getActivity(), TaskEditActivity.class);
intent.putExtra(TaskEditFragment.TOKEN_ID, clone.getId()); intent.putExtra(TaskEditFragment.TOKEN_ID, clone.getId());
intent.putExtra(TOKEN_FILTER, filter); intent.putExtra(TOKEN_FILTER, filter);
startActivityForResult(intent, ACTIVITY_EDIT_TASK); getActivity().startActivityForResult(intent, ACTIVITY_EDIT_TASK);
transitionForTaskEdit(); transitionForTaskEdit();
return true; return true;

Loading…
Cancel
Save