amitshekhariitbhu / RxJava2-Android-Samples

RxJava 2 Android Examples - How to use RxJava 2 in Android
https://outcomeschool.com
Apache License 2.0
4.96k stars 1.06k forks source link

In SearchActivity error? #31

Open DmitrySoloviyev opened 6 years ago

DmitrySoloviyev commented 6 years ago

When I click on keyboard button "actionSearch" observer call "onComplete" and observable do not react on text changed event.

Vignesh150493 commented 5 years ago

@amitshekhariitbhu Yes. The observer(subject) completes in onQueryTextSubmit, and then subsequent onNext calls dont work. Any action performed, after text submission dosent work. Maybe onComplete should not be called in onQueryTextSubmit?

amitshekhariitbhu commented 5 years ago

As the current project is just a sample project. But yes, we can make it better here. There are two ways to do it.