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 :
findFlatButton.clicks()
.map { 1 }
.mergeWith(flatNumberEditor.keys{ it.keyCode == KeyEvent.KEYCODE_ENTER }.map { 1 })
.map {
flatModel
}
.filter { flatNumberInput.editText?.text?.isNotEmpty()?:false }
.map {flatModel}
.doOnNext{ flatNumberEditor.hideKeyboard() }
.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