1
0
Fork 0

disable blank searches

master
nikit19 2019-02-24 17:58:10 +05:30 committed by Jeff Boek
parent 3ccce1b4d2
commit 9d6ea0ac28
1 changed files with 4 additions and 2 deletions

View File

@ -81,8 +81,10 @@ class SearchFragment : Fragment() {
.subscribe {
when (it) {
is SearchAction.UrlCommitted -> {
transitionToBrowser()
load(it.url)
if (it.url.isNotBlank()) {
transitionToBrowser()
load(it.url)
}
}
is SearchAction.TextChanged -> {
getManagedEmitter<AwesomeBarChange>().onNext(AwesomeBarChange.UpdateQuery(it.query))