I wouldn't worry about that warning now. If you do...
# android
a
I wouldn't worry about that warning now. If you do
Log.d
before the whole
RxTextView
part, can you see that printed to logcat?
n
@arekolek yes
a
You can add
.doOnNext { Log.d(TAG, "skipInitialValue: $it") }
after
skipInitialValue
and so on after subsequent operations and see what happens
I don't know what
lengthGreaterThanSix
and
verifyEmailPattern
do
n
private val lengthGreaterThanSix = ObservableTransformer<String, String> { it.map { it.trim() } .filter { it.length > 6 } .singleOrError() .onErrorResumeNext { if (it is NoSuchElementException) { Single.error(Exception(“Lenght should be more than 6”)) } else { Single.error(it) } } .toObservable() } private val verifyEmailPattern = ObservableTransformer<String, String> { it.map { it.trim() } .filter { Patterns.EMAIL_ADDRESS.matcher(it).matches() } .singleOrError() .onErrorResumeNext { if (it is NoSuchElementException) { Single.error(Exception(“Email is not valid”)) } else { Single.error(it) } } .toObservable() }