Commit d4a2cfcb authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

fatal error on empty to flat screen

parent bfff288e
...@@ -48,9 +48,8 @@ class FindFlatScreenController : ...@@ -48,9 +48,8 @@ class FindFlatScreenController :
findFlatButton.clicks() findFlatButton.clicks()
.map { 1 } .map { 1 }
.mergeWith(flatNumberEditor.keys{ it.keyCode == KeyEvent.KEYCODE_ENTER }.map { 1 }) .mergeWith(flatNumberEditor.keys{ it.keyCode == KeyEvent.KEYCODE_ENTER }.map { 1 })
.map { .filter { flatNumberInput.editText?.text?.isNotEmpty()?:false }
flatModel .map {flatModel}
}
.doOnNext{ flatNumberEditor.hideKeyboard() } .doOnNext{ flatNumberEditor.hideKeyboard() }
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment