Fix format issue

Change-Id: I02b545c1093575531c965553d3ec3bb192d256d9
pull/675/head
thagikura 2 years ago
parent 0d2811d52b
commit aac217c0a6

@ -19,7 +19,6 @@ package com.google.samples.apps.nowinandroid.core.testing.repository
import com.google.samples.apps.nowinandroid.core.data.model.RecentSearchQuery import com.google.samples.apps.nowinandroid.core.data.model.RecentSearchQuery
import com.google.samples.apps.nowinandroid.core.data.repository.RecentSearchRepository import com.google.samples.apps.nowinandroid.core.data.repository.RecentSearchRepository
import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOf import kotlinx.coroutines.flow.flowOf
class TestRecentSearchRepository : RecentSearchRepository { class TestRecentSearchRepository : RecentSearchRepository {

@ -78,10 +78,10 @@ class SearchViewModel @Inject constructor(
val recentSearchQueriesUiState: StateFlow<RecentSearchQueriesUiState> = val recentSearchQueriesUiState: StateFlow<RecentSearchQueriesUiState> =
recentSearchQueriesUseCase().map(RecentSearchQueriesUiState::Success) recentSearchQueriesUseCase().map(RecentSearchQueriesUiState::Success)
.stateIn( .stateIn(
scope = viewModelScope, scope = viewModelScope,
started = SharingStarted.WhileSubscribed(5_000), started = SharingStarted.WhileSubscribed(5_000),
initialValue = RecentSearchQueriesUiState.Loading, initialValue = RecentSearchQueriesUiState.Loading,
) )
fun onSearchQueryChanged(query: String) { fun onSearchQueryChanged(query: String) {
savedStateHandle[SEARCH_QUERY] = query savedStateHandle[SEARCH_QUERY] = query

Loading…
Cancel
Save