From 987925d8371fee389dc28f33f4f5346cb9ec2b39 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Tue, 21 Feb 2023 17:03:26 -0500 Subject: [PATCH] Reverting to a Class for the Notification View Model --- .../com/vitorpamplona/amethyst/ui/screen/CardFeedViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/CardFeedViewModel.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/CardFeedViewModel.kt index cc84be99a..6a1315c4c 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/CardFeedViewModel.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/CardFeedViewModel.kt @@ -24,7 +24,7 @@ import kotlinx.coroutines.flow.update import kotlinx.coroutines.launch import kotlinx.coroutines.withContext -object NotificationViewModel: CardFeedViewModel(NotificationFeedFilter) +class NotificationViewModel: CardFeedViewModel(NotificationFeedFilter) open class CardFeedViewModel(val dataSource: FeedFilter): ViewModel() { private val _feedContent = MutableStateFlow(CardFeedState.Loading)