Fix bug with search UI not showing when searching from settings.
This commit is contained in:
parent
0c3b541031
commit
b9f7ef5cbd
1 changed files with 2 additions and 2 deletions
|
@ -557,7 +557,7 @@ class ConversationFragment :
|
|||
override fun onViewStateRestored(savedInstanceState: Bundle?) {
|
||||
super.onViewStateRestored(savedInstanceState)
|
||||
|
||||
isSearchRequested = savedInstanceState?.getBoolean(SAVED_STATE_IS_SEARCH_REQUESTED, false) ?: false
|
||||
isSearchRequested = savedInstanceState?.getBoolean(SAVED_STATE_IS_SEARCH_REQUESTED, false) ?: args.isWithSearchOpen
|
||||
}
|
||||
|
||||
override fun onSaveInstanceState(outState: Bundle) {
|
||||
|
@ -1145,7 +1145,7 @@ class ConversationFragment :
|
|||
}
|
||||
|
||||
private fun invalidateOptionsMenu() {
|
||||
if (!isSearchRequested) {
|
||||
if (searchMenuItem?.isActionViewExpanded != true) {
|
||||
binding.toolbar.invalidateMenu()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue