Fix source SearchView stuck open until query submitted (#4897)

closes #4850

(cherry picked from commit 60a929b92ce72a02ff8db4615e13b051a9cb6a28)
This commit is contained in:
Ivan Iskandar 2021-04-18 22:32:22 +07:00 committed by Jobobby04
parent d3778ac6e1
commit d37b24adb1

View File

@ -412,6 +412,7 @@ open class BrowseSourceController(bundle: Bundle) :
if (router.backstackSize >= 2 && router.backstack[router.backstackSize - 2].controller() is GlobalSearchController) {
router.popController(this)
} else {
nonSubmittedQuery = ""
searchWithQuery("")
}