disable blank searches
parent
3ccce1b4d2
commit
9d6ea0ac28
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue