mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Fix not being able to back out of search activities
This commit is contained in:
parent
07419a17a9
commit
3abbca2bdd
1 changed files with 10 additions and 6 deletions
|
@ -395,10 +395,12 @@ open class MainActivity : BaseActivity<MainActivityBinding>(), DownloadServiceLi
|
|||
binding.appBar.y = 0f
|
||||
binding.appBar.updateAppBarAfterY(controller?.mainRecyclerView)
|
||||
}
|
||||
binding.searchToolbar.menu.forEach { it.isVisible = false }
|
||||
lifecycleScope.launchUI {
|
||||
(controller as? BaseController<*>)?.onActionViewExpand(item)
|
||||
(controller as? SettingsController)?.onActionViewExpand(item)
|
||||
binding.searchToolbar.menu.forEach { it.isVisible = false }
|
||||
lifecycleScope.launchUI { reEnableBackPressedCallBack() }
|
||||
reEnableBackPressedCallBack()
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
|
@ -407,9 +409,11 @@ open class MainActivity : BaseActivity<MainActivityBinding>(), DownloadServiceLi
|
|||
binding.appBar.compactSearchMode = false
|
||||
controller?.mainRecyclerView?.requestApplyInsets()
|
||||
setupSearchTBMenu(binding.toolbar.menu, true)
|
||||
lifecycleScope.launchUI {
|
||||
(controller as? BaseController<*>)?.onActionViewCollapse(item)
|
||||
(controller as? SettingsController)?.onActionViewCollapse(item)
|
||||
lifecycleScope.launchUI { reEnableBackPressedCallBack() }
|
||||
reEnableBackPressedCallBack()
|
||||
}
|
||||
return true
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue