I have RxJava filter to get POA's only that are not deleted(deactivated) and I am quite sure that I have one result, but I do not get any result in subscribe.
Disposable disposable = appDatabase.poaDao().getAllMine()
.flatMap(poaDbs -> Flowable.fromIterable(poaDbs))
.filter(poaDb -> !poaDb.isDeleted())
.toList()
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(poaDbs ->
view.onActivePoasIssuedByMe(poaDbs),
throwable -> view.handleError(throwable));
What could be the reason? I have tried debugging but it never gets to sunbscribe().
getAllMine()
asSingle<List<POAwhatever>>
and you should get a single list of results to filter. – akarnokd