futurice / freesound-android

Unofficial Android client for the Freesound Project
Apache License 2.0
85 stars 16 forks source link

Search failure causes subsequent searches to not be performed #77

Closed peter-tackage closed 8 years ago

peter-tackage commented 8 years ago

The following error causes the search activity's search capability to no longer function:

10-18 22:57:57.815 2738-2925/com.futurice.freesound.debug E/SearchViewModel: Error when setting search term

It would seem that the onError event is propagated too far, causing the searchQuery stream Observable to error and no longer accept requests.

This can occur when the search API call has a network failure. The app should instead be able to accept future queries.