File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
presentation/src/main/java/com/stop/ui/placesearch Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import com.stop.databinding.FragmentPlaceSearchBinding
20
20
import com.stop.domain.model.nearplace.PlaceUseCaseItem
21
21
import dagger.hilt.android.AndroidEntryPoint
22
22
import kotlinx.coroutines.Dispatchers
23
- import kotlinx.coroutines.FlowPreview
24
23
import kotlinx.coroutines.flow.debounce
25
24
import kotlinx.coroutines.flow.launchIn
26
25
import kotlinx.coroutines.flow.onEach
@@ -62,7 +61,7 @@ class PlaceSearchFragment : Fragment() {
62
61
buttonClick()
63
62
listenEditTextChange()
64
63
logErrorMessage()
65
- observeSearchKeyword ()
64
+ listenSearchEditText ()
66
65
}
67
66
68
67
private fun initAdapter () {
@@ -137,8 +136,7 @@ class PlaceSearchFragment : Fragment() {
137
136
}
138
137
}
139
138
140
- @OptIn(FlowPreview ::class )
141
- private fun observeSearchKeyword () {
139
+ private fun listenSearchEditText () {
142
140
lifecycleScope.launch(Dispatchers .IO ) {
143
141
val editTextFlow = binding.textInputEditTextPlaceSearch.textChangesToFlow()
144
142
You can’t perform that action at this time.
0 commit comments