https://kotlinlang.org logo
Title
a

arekolek

02/24/2018, 1:44 PM
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

Nizzle94

02/24/2018, 1:46 PM
@arekolek yes
a

arekolek

02/24/2018, 1:50 PM
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

Nizzle94

02/24/2018, 1:52 PM
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() }