@@ -18,7 +18,6 @@ import kotlinx.coroutines.flow.update
1818import kotlinx.coroutines.isActive
1919import kotlinx.coroutines.launch
2020import kotlinx.coroutines.withContext
21- import to.bitkit.data.SettingsStore
2221import to.bitkit.data.WidgetsData
2322import to.bitkit.data.WidgetsStore
2423import to.bitkit.data.dto.ArticleDTO
@@ -54,16 +53,13 @@ class WidgetsRepo @Inject constructor(
5453 private val weatherService : WeatherService ,
5554 private val priceService : PriceService ,
5655 private val widgetsStore : WidgetsStore ,
57- private val settingsStore : SettingsStore ,
5856) {
5957 private val repoScope = CoroutineScope (bgDispatcher + SupervisorJob ())
6058 private val widgetJobs = ConcurrentHashMap <WidgetType , Job >()
6159
6260 val widgetsDataFlow: StateFlow <WidgetsData > = widgetsStore.data
6361 .stateIn(repoScope, SharingStarted .Eagerly , WidgetsData ())
6462
65- val showWidgetTitles = settingsStore.data.map { it.showWidgetTitles }
66-
6763 val articlesFlow: StateFlow <List <ArticleDTO >> = widgetsDataFlow
6864 .map { it.articles }
6965 .stateIn(repoScope, SharingStarted .Eagerly , emptyList())
0 commit comments