From 417b5b517c88331aab879bebe748c02b5a80c3e9 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Thu, 16 Feb 2012 13:02:01 -0800 Subject: [PATCH] Fixed a bug where task list wouldn't refresh after task edit on phones --- astrid/src/com/todoroo/astrid/activity/TaskListActivity.java | 3 +-- astrid/src/com/todoroo/astrid/activity/TaskListFragment.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/astrid/src/com/todoroo/astrid/activity/TaskListActivity.java b/astrid/src/com/todoroo/astrid/activity/TaskListActivity.java index fed670983..a6ee7d16e 100644 --- a/astrid/src/com/todoroo/astrid/activity/TaskListActivity.java +++ b/astrid/src/com/todoroo/astrid/activity/TaskListActivity.java @@ -392,9 +392,8 @@ public class TaskListActivity extends AstridActivity implements MainMenuListener } if (data.getBooleanExtra(TaskEditFragment.TOKEN_TAGS_CHANGED, false)) tagsChanged(true); - } else { - tlf.refresh(); } + tlf.refresh(); } } diff --git a/astrid/src/com/todoroo/astrid/activity/TaskListFragment.java b/astrid/src/com/todoroo/astrid/activity/TaskListFragment.java index 93dca7e22..96169815f 100644 --- a/astrid/src/com/todoroo/astrid/activity/TaskListFragment.java +++ b/astrid/src/com/todoroo/astrid/activity/TaskListFragment.java @@ -1594,7 +1594,7 @@ public class TaskListFragment extends ListFragment implements OnScrollListener, intent = new Intent(getActivity(), TaskEditActivity.class); intent.putExtra(TaskEditFragment.TOKEN_ID, clone.getId()); intent.putExtra(TOKEN_FILTER, filter); - startActivityForResult(intent, ACTIVITY_EDIT_TASK); + getActivity().startActivityForResult(intent, ACTIVITY_EDIT_TASK); transitionForTaskEdit(); return true;