RxJava2-Android-Samples icon indicating copy to clipboard operation
RxJava2-Android-Samples copied to clipboard

In SearchActivity error?

Open DmitrySoloviyev opened this issue 7 years ago • 2 comments

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

DmitrySoloviyev avatar Mar 15 '18 10:03 DmitrySoloviyev

@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?

Vignesh150493 avatar Jan 19 '19 10:01 Vignesh150493

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

  • Do not call onComplete.
  • Another solution can be resubscribe on it.

amitshekhariitbhu avatar Jan 19 '19 10:01 amitshekhariitbhu