From 76a8444ffe5af1cf1f3cb38907812f09b5aa92e0 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Fri, 22 Mar 2013 10:58:06 -0700 Subject: [PATCH] Fixed a crash when deleting list from list settings page --- astrid/plugin-src/com/todoroo/astrid/actfm/TagViewFragment.java | 2 +- .../com/todoroo/astrid/subtasks/SubtasksTagListFragment.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/TagViewFragment.java b/astrid/plugin-src/com/todoroo/astrid/actfm/TagViewFragment.java index b92d5523b..93c880e18 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/TagViewFragment.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/TagViewFragment.java @@ -144,7 +144,7 @@ public class TagViewFragment extends TaskListFragment { private Filter originalFilter; - private boolean justDeleted = false; + protected boolean justDeleted = false; // --- UI initialization diff --git a/astrid/plugin-src/com/todoroo/astrid/subtasks/SubtasksTagListFragment.java b/astrid/plugin-src/com/todoroo/astrid/subtasks/SubtasksTagListFragment.java index acb193555..142c1bcd8 100644 --- a/astrid/plugin-src/com/todoroo/astrid/subtasks/SubtasksTagListFragment.java +++ b/astrid/plugin-src/com/todoroo/astrid/subtasks/SubtasksTagListFragment.java @@ -69,7 +69,7 @@ public class SubtasksTagListFragment extends TagViewFragment { @Override public void onResume() { super.onResume(); - if (lastVisibleIndex >=0) { + if (lastVisibleIndex >= 0 && !justDeleted) { getListView().setSelection(lastVisibleIndex); } }