Fixed a crash when deleting list from list settings page

pull/14/head
Sam Bosley 13 years ago
parent 4af3984f75
commit 76a8444ffe

@ -144,7 +144,7 @@ public class TagViewFragment extends TaskListFragment {
private Filter originalFilter; private Filter originalFilter;
private boolean justDeleted = false; protected boolean justDeleted = false;
// --- UI initialization // --- UI initialization

@ -69,7 +69,7 @@ public class SubtasksTagListFragment extends TagViewFragment {
@Override @Override
public void onResume() { public void onResume() {
super.onResume(); super.onResume();
if (lastVisibleIndex >=0) { if (lastVisibleIndex >= 0 && !justDeleted) {
getListView().setSelection(lastVisibleIndex); getListView().setSelection(lastVisibleIndex);
} }
} }

Loading…
Cancel
Save