File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
search/src/main/kotlin/com/ninecraft/booket/feature/search/book
settings/src/main/kotlin/com/ninecraft/booket/feature/settings Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package com.ninecraft.booket.feature.search.book
33import androidx.compose.foundation.text.input.clearText
44import androidx.compose.foundation.text.input.rememberTextFieldState
55import androidx.compose.runtime.Composable
6- import androidx.compose.runtime.LaunchedEffect
76import androidx.compose.runtime.getValue
87import androidx.compose.runtime.mutableIntStateOf
98import androidx.compose.runtime.mutableStateOf
@@ -98,6 +97,9 @@ class BookSearchPresenter @AssistedInject constructor(
9897 }
9998
10099 analyticsHelper.logEvent(SEARCH_BOOK_RESULT )
100+ if (startIndex == START_INDEX && result.books.isEmpty()) {
101+ analyticsHelper.logEvent(SEARCH_BOOK_NO_RESULT )
102+ }
101103 }
102104 .onFailure { exception ->
103105 Logger .d(exception)
@@ -240,12 +242,6 @@ class BookSearchPresenter @AssistedInject constructor(
240242 }
241243 }
242244
243- LaunchedEffect (recentSearches, uiState) {
244- if (recentSearches.isEmpty() && uiState is UiState .Idle ) {
245- analyticsHelper.logEvent(SEARCH_BOOK_NO_RESULT )
246- }
247- }
248-
249245 return BookSearchUiState (
250246 uiState = uiState,
251247 footerState = footerState,
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class SettingsPresenter @AssistedInject constructor(
3333
3434 companion object {
3535 private const val SETTINGS_LOGOUT_COMPLETE = " settings_logout_complete"
36- private const val SETTINGS_WITHDRAWAL_COMPLETE = " settings_withdrawal_warning "
36+ private const val SETTINGS_WITHDRAWAL_COMPLETE = " settings_withdrawal_complete "
3737 private const val SETTINGS_WITHDRAWAL_WARNING = " settings_withdrawal_warning"
3838 }
3939
You can’t perform that action at this time.
0 commit comments