mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-07 20:31:02 -05:00
Clear search query before popping controller when navigating up (#8055)
This commit is contained in:
parent
acb8ab15b2
commit
d3520419d4
1 changed files with 7 additions and 1 deletions
|
@ -52,7 +52,13 @@ open class BrowseSourceController(bundle: Bundle) :
|
||||||
|
|
||||||
BrowseSourceScreen(
|
BrowseSourceScreen(
|
||||||
presenter = presenter,
|
presenter = presenter,
|
||||||
navigateUp = { router.popCurrentController() },
|
navigateUp = {
|
||||||
|
if (presenter.isUserQuery) {
|
||||||
|
presenter.search()
|
||||||
|
} else {
|
||||||
|
router.popCurrentController()
|
||||||
|
}
|
||||||
|
},
|
||||||
onFabClick = { filterSheet?.show() },
|
onFabClick = { filterSheet?.show() },
|
||||||
onMangaClick = { router.pushController(MangaController(it.id, true)) },
|
onMangaClick = { router.pushController(MangaController(it.id, true)) },
|
||||||
onMangaLongClick = { manga ->
|
onMangaLongClick = { manga ->
|
||||||
|
|
Loading…
Reference in a new issue