Only enable search when mode is Catalogue
This commit is contained in:
parent
7c4e89cbc5
commit
acb9bafa0a
@ -388,6 +388,7 @@ class SourceController(bundle: Bundle? = null) :
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
|
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
|
||||||
|
if (mode == Mode.CATALOGUE) {
|
||||||
createOptionsMenu(
|
createOptionsMenu(
|
||||||
menu,
|
menu,
|
||||||
inflater,
|
inflater,
|
||||||
@ -397,10 +398,11 @@ class SourceController(bundle: Bundle? = null) :
|
|||||||
false // GlobalSearch handles the searching here
|
false // GlobalSearch handles the searching here
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
override fun onSearchViewQueryTextSubmit(query: String?) {
|
override fun onSearchViewQueryTextSubmit(query: String?) {
|
||||||
// SY -->
|
// SY -->
|
||||||
if (mode != Mode.SMART_SEARCH) {
|
if (mode == Mode.CATALOGUE) {
|
||||||
parentController!!.router.pushController(
|
parentController!!.router.pushController(
|
||||||
GlobalSearchController(query).withFadeTransaction()
|
GlobalSearchController(query).withFadeTransaction()
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user