|
|
|
@ -83,7 +83,7 @@ import com.google.samples.apps.nowinandroid.core.designsystem.component.NiaOverl
|
|
|
|
|
import com.google.samples.apps.nowinandroid.core.designsystem.icon.NiaIcons
|
|
|
|
|
import com.google.samples.apps.nowinandroid.core.designsystem.theme.NiaTheme
|
|
|
|
|
import com.google.samples.apps.nowinandroid.core.domain.model.FollowableTopic
|
|
|
|
|
import com.google.samples.apps.nowinandroid.core.domain.model.SaveableNewsResource
|
|
|
|
|
import com.google.samples.apps.nowinandroid.core.domain.model.UserNewsResource
|
|
|
|
|
import com.google.samples.apps.nowinandroid.core.model.data.previewNewsResources
|
|
|
|
|
import com.google.samples.apps.nowinandroid.core.model.data.previewTopics
|
|
|
|
|
import com.google.samples.apps.nowinandroid.core.ui.DevicePreviews
|
|
|
|
@ -397,7 +397,7 @@ fun ForYouScreenPopulatedFeed() {
|
|
|
|
|
onboardingUiState = OnboardingUiState.NotShown,
|
|
|
|
|
feedState = NewsFeedUiState.Success(
|
|
|
|
|
feed = previewNewsResources.map {
|
|
|
|
|
SaveableNewsResource(it, false)
|
|
|
|
|
UserNewsResource(it, false)
|
|
|
|
|
}
|
|
|
|
|
),
|
|
|
|
|
onTopicCheckedChanged = { _, _ -> },
|
|
|
|
@ -418,7 +418,7 @@ fun ForYouScreenOfflinePopulatedFeed() {
|
|
|
|
|
onboardingUiState = OnboardingUiState.NotShown,
|
|
|
|
|
feedState = NewsFeedUiState.Success(
|
|
|
|
|
feed = previewNewsResources.map {
|
|
|
|
|
SaveableNewsResource(it, false)
|
|
|
|
|
UserNewsResource(it, false)
|
|
|
|
|
}
|
|
|
|
|
),
|
|
|
|
|
onTopicCheckedChanged = { _, _ -> },
|
|
|
|
@ -441,7 +441,7 @@ fun ForYouScreenTopicSelection() {
|
|
|
|
|
),
|
|
|
|
|
feedState = NewsFeedUiState.Success(
|
|
|
|
|
feed = previewNewsResources.map {
|
|
|
|
|
SaveableNewsResource(it, false)
|
|
|
|
|
UserNewsResource(it, false)
|
|
|
|
|
}
|
|
|
|
|
),
|
|
|
|
|
onTopicCheckedChanged = { _, _ -> },
|
|
|
|
@ -479,7 +479,7 @@ fun ForYouScreenPopulatedAndLoading() {
|
|
|
|
|
onboardingUiState = OnboardingUiState.Loading,
|
|
|
|
|
feedState = NewsFeedUiState.Success(
|
|
|
|
|
feed = previewNewsResources.map {
|
|
|
|
|
SaveableNewsResource(it, false)
|
|
|
|
|
UserNewsResource(it, false)
|
|
|
|
|
}
|
|
|
|
|
),
|
|
|
|
|
onTopicCheckedChanged = { _, _ -> },
|
|
|
|
|