From c72236b7f3030182f4b7741bd75fe4b21d67a88d Mon Sep 17 00:00:00 2001 From: cketti Date: Wed, 21 Sep 2022 11:36:14 +0200 Subject: [PATCH] Change `SearchView` initialization --- .../legacy/src/main/java/com/fsck/k9/activity/MessageList.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/ui/legacy/src/main/java/com/fsck/k9/activity/MessageList.kt b/app/ui/legacy/src/main/java/com/fsck/k9/activity/MessageList.kt index addb16a9f..fbb37fdfd 100644 --- a/app/ui/legacy/src/main/java/com/fsck/k9/activity/MessageList.kt +++ b/app/ui/legacy/src/main/java/com/fsck/k9/activity/MessageList.kt @@ -588,7 +588,7 @@ open class MessageList : messageViewOnly = savedInstanceState.getBoolean(STATE_MESSAGE_VIEW_ONLY) messageListWasDisplayed = savedInstanceState.getBoolean(STATE_MESSAGE_LIST_WAS_DISPLAYED) - initialSearchViewIconified = savedInstanceState.getBoolean(STATE_SEARCH_VIEW_ICONIFIED) + initialSearchViewIconified = savedInstanceState.getBoolean(STATE_SEARCH_VIEW_ICONIFIED, true) initialSearchViewQuery = savedInstanceState.getString(STATE_SEARCH_VIEW_QUERY) } @@ -970,8 +970,8 @@ open class MessageList : } }) - searchView.isIconified = initialSearchViewIconified searchView.setQuery(initialSearchViewQuery, false) + searchView.isIconified = initialSearchViewIconified this.searchView = searchView }