We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b745309 commit bc9c564Copy full SHA for bc9c564
presentation/src/main/java/com/stop/ui/placesearch/PlaceSearchFragment.kt
@@ -154,7 +154,11 @@ class PlaceSearchFragment : Fragment() {
154
editTextFlow
155
.debounce(500)
156
.onEach {
157
- placeSearchViewModel.getNearPlaces(it.toString())
+ if(it.toString().isBlank()){
158
+ placeSearchViewModel.setNearPlacesEmpty()
159
+ }else{
160
+ placeSearchViewModel.getNearPlaces(it.toString())
161
+ }
162
}
163
.launchIn(this)
164
0 commit comments