disable blank searches
parent
3ccce1b4d2
commit
9d6ea0ac28
|
@ -81,8 +81,10 @@ class SearchFragment : Fragment() {
|
||||||
.subscribe {
|
.subscribe {
|
||||||
when (it) {
|
when (it) {
|
||||||
is SearchAction.UrlCommitted -> {
|
is SearchAction.UrlCommitted -> {
|
||||||
transitionToBrowser()
|
if (it.url.isNotBlank()) {
|
||||||
load(it.url)
|
transitionToBrowser()
|
||||||
|
load(it.url)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
is SearchAction.TextChanged -> {
|
is SearchAction.TextChanged -> {
|
||||||
getManagedEmitter<AwesomeBarChange>().onNext(AwesomeBarChange.UpdateQuery(it.query))
|
getManagedEmitter<AwesomeBarChange>().onNext(AwesomeBarChange.UpdateQuery(it.query))
|
||||||
|
|
Loading…
Reference in New Issue