Refresh task list after finishing task edit to make sure changes are reflected

pull/14/head
Sam Bosley 13 years ago
parent efa502be7d
commit 0de0f1773c

@ -912,6 +912,7 @@ ViewPager.OnPageChangeListener, EditNoteActivity.UpdatesChangedListener {
tla.switchToAssignedFilter(assignedTo);
if (tagsChanged)
tla.tagsChanged();
tla.refreshTaskList();
}
shouldSaveState = false;

@ -417,6 +417,12 @@ public class TaskListActivity extends AstridActivity implements MainMenuListener
}
}
protected void refreshTaskList() {
TaskListFragment tlf = getTaskListFragment();
if (tlf != null)
tlf.refresh();
}
protected void switchToAssignedFilter(final String assignedEmail) {
TaskListFragment tlf = getTaskListFragment();
if (tlf != null && !tlf.isFilter()) {

Loading…
Cancel
Save