mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-22 03:54:18 -04:00
#2607 fixed
This commit is contained in:
parent
19a70529f4
commit
95c1a3be5f
@ -1228,6 +1228,7 @@ public abstract class CoreReaderFragment extends BaseFragment
|
||||
switch (intent.getAction()) {
|
||||
case Intent.ACTION_PROCESS_TEXT: {
|
||||
goToSearchWithText(intent);
|
||||
intent.setAction(null);
|
||||
break;
|
||||
}
|
||||
case CoreSearchWidget.TEXT_CLICKED:
|
||||
|
@ -150,7 +150,9 @@ class SearchFragment : BaseFragment() {
|
||||
searchMenuItem.expandActionView()
|
||||
searchView = searchMenuItem.actionView as SearchView
|
||||
searchView.setOnQueryTextListener(SimpleTextListener {
|
||||
searchViewModel.actions.offer(Filter(it))
|
||||
if (it.isNotEmpty()) {
|
||||
searchViewModel.actions.offer(Filter(it))
|
||||
}
|
||||
})
|
||||
searchMenuItem.setOnActionExpandListener(object : OnActionExpandListener {
|
||||
override fun onMenuItemActionExpand(item: MenuItem) = false
|
||||
|
Loading…
x
Reference in New Issue
Block a user