File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
feature/search/src/main/kotlin/com/ninecraft/booket/feature/search Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ class BookSearchPresenter @AssistedInject constructor(
154154 is BookSearchUiEvent .OnSearchClick -> {
155155 val query = event.text.trim()
156156 if (query.isNotEmpty()) {
157- searchBooks(query = event.text , startIndex = START_INDEX )
157+ searchBooks(query = query , startIndex = START_INDEX )
158158 }
159159 }
160160
@@ -165,14 +165,14 @@ class BookSearchPresenter @AssistedInject constructor(
165165 is BookSearchUiEvent .OnLoadMore -> {
166166 val query = queryState.text.trim().toString()
167167 if (footerState !is FooterState .Loading && ! isLastPage && query.isNotEmpty()) {
168- searchBooks(query = queryState.text.toString() , startIndex = currentStartIndex + 1 )
168+ searchBooks(query = query , startIndex = currentStartIndex + 1 )
169169 }
170170 }
171171
172172 is BookSearchUiEvent .OnRetryClick -> {
173173 val query = queryState.text.trim().toString()
174174 if (query.isNotEmpty()) {
175- searchBooks(query = queryState.text.toString() , startIndex = START_INDEX )
175+ searchBooks(query = query , startIndex = START_INDEX )
176176 }
177177 }
178178
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ class LibrarySearchPresenter @AssistedInject constructor(
144144 is LibrarySearchUiEvent .OnRetryClick -> {
145145 val query = queryState.text.trim().toString()
146146 if (query.isNotEmpty()) {
147- searchLibraryBooks(query = queryState.text.toString() , page = START_INDEX , size = PAGE_SIZE )
147+ searchLibraryBooks(query = query , page = START_INDEX , size = PAGE_SIZE )
148148 }
149149 }
150150
You can’t perform that action at this time.
0 commit comments