This commit is contained in:
Ryan Zhao 2021-06-29 11:51:04 +10:00
parent f4d3a7359e
commit 6b4acd0232

View File

@ -96,7 +96,6 @@ object ConversationMenuHelper {
context.searchBottomBar.visibility = View.VISIBLE context.searchBottomBar.visibility = View.VISIBLE
context.searchBottomBar.setData(0, 0) context.searchBottomBar.setData(0, 0)
context.inputBar.visibility = View.GONE context.inputBar.visibility = View.GONE
context.supportActionBar?.setDisplayHomeAsUpEnabled(false)
for (i in 0 until menu.size()) { for (i in 0 until menu.size()) {
if (menu.getItem(i) != searchViewItem) { if (menu.getItem(i) != searchViewItem) {
menu.getItem(i).isVisible = false menu.getItem(i).isVisible = false
@ -110,7 +109,6 @@ object ConversationMenuHelper {
searchViewModel.onSearchClosed() searchViewModel.onSearchClosed()
context.searchBottomBar.visibility = View.GONE context.searchBottomBar.visibility = View.GONE
context.inputBar.visibility = View.VISIBLE context.inputBar.visibility = View.VISIBLE
context.supportActionBar?.setDisplayHomeAsUpEnabled(true)
context.onSearchQueryUpdated(null) context.onSearchQueryUpdated(null)
context.invalidateOptionsMenu() context.invalidateOptionsMenu()
return true return true