From 0de0f1773c1af39e55d564fe45272cc73750dbd2 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Wed, 15 Feb 2012 15:42:36 -0800 Subject: [PATCH] Refresh task list after finishing task edit to make sure changes are reflected --- .../src/com/todoroo/astrid/activity/TaskEditFragment.java | 1 + .../src/com/todoroo/astrid/activity/TaskListActivity.java | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/astrid/src/com/todoroo/astrid/activity/TaskEditFragment.java b/astrid/src/com/todoroo/astrid/activity/TaskEditFragment.java index 0474d4449..b77a1cb6c 100755 --- a/astrid/src/com/todoroo/astrid/activity/TaskEditFragment.java +++ b/astrid/src/com/todoroo/astrid/activity/TaskEditFragment.java @@ -912,6 +912,7 @@ ViewPager.OnPageChangeListener, EditNoteActivity.UpdatesChangedListener { tla.switchToAssignedFilter(assignedTo); if (tagsChanged) tla.tagsChanged(); + tla.refreshTaskList(); } shouldSaveState = false; diff --git a/astrid/src/com/todoroo/astrid/activity/TaskListActivity.java b/astrid/src/com/todoroo/astrid/activity/TaskListActivity.java index b68220df8..f8d1227a0 100644 --- a/astrid/src/com/todoroo/astrid/activity/TaskListActivity.java +++ b/astrid/src/com/todoroo/astrid/activity/TaskListActivity.java @@ -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()) {