mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
Fix bad feeling on-back behavior for in-conversation search.
This commit is contained in:
@@ -540,6 +540,8 @@ class ConversationFragment :
|
||||
}
|
||||
|
||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
binding.toolbar.isBackInvokedCallbackEnabled = false
|
||||
|
||||
disposables.bindTo(viewLifecycleOwner)
|
||||
FullscreenHelper(requireActivity()).showSystemUI()
|
||||
|
||||
@@ -3971,6 +3973,10 @@ class ConversationFragment :
|
||||
|
||||
override fun onKeyboardHidden() {
|
||||
closeEmojiSearch()
|
||||
|
||||
if (searchMenuItem?.isActionViewExpanded == true && searchMenuItem?.actionView?.hasFocus() == true) {
|
||||
searchMenuItem?.actionView?.clearFocus()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user