Merge pull request #6317 from thundernest/fix_SearchView_expanded_on_start

Don't show search input field when starting the app
This commit is contained in:
cketti 2022-09-22 13:23:38 +02:00 committed by GitHub
commit ba72a6c66c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}