Fixed bug with activity shown for new lists

pull/14/head
Sam Bosley 13 years ago
parent 7e2e378c2e
commit 8564e37b40

@ -483,7 +483,7 @@ public class TaskListActivity extends AstridActivity implements MainMenuListener
if (newList != null) { if (newList != null) {
onFilterItemClicked(newList); // Switch to the new list onFilterItemClicked(newList); // Switch to the new list
FilterListFragment fla = getFilterListFragment(); FilterListFragment fla = getFilterListFragment();
if (fla != null) if (fla != null && getFragmentLayout() != LAYOUT_SINGLE)
fla.clear(); fla.clear();
} }
} else if (requestCode == TaskListFragment.ACTIVITY_EDIT_TASK && resultCode != Activity.RESULT_CANCELED) { } else if (requestCode == TaskListFragment.ACTIVITY_EDIT_TASK && resultCode != Activity.RESULT_CANCELED) {

Loading…
Cancel
Save