From 4030312820d67440f4fcccf62ca0acb84b27e4e4 Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Tue, 3 Mar 2020 11:50:43 -0600 Subject: [PATCH] Collapse search view on back button --- .../java/com/todoroo/astrid/activity/TaskListFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/todoroo/astrid/activity/TaskListFragment.java b/app/src/main/java/com/todoroo/astrid/activity/TaskListFragment.java index fffa94b20..e02902791 100644 --- a/app/src/main/java/com/todoroo/astrid/activity/TaskListFragment.java +++ b/app/src/main/java/com/todoroo/astrid/activity/TaskListFragment.java @@ -529,7 +529,8 @@ public final class TaskListFragment extends InjectingFragment } boolean collapseSearchView() { - return search.isActionViewExpanded() && search.collapseActionView(); + return search.isActionViewExpanded() + && (search.collapseActionView() || !search.isActionViewExpanded()); } private void refresh() {