Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/src/main/java/to/bitkit/data/SettingsStore.kt
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ data class SettingsData(
val isPinOnIdleEnabled: Boolean = false,
val isPinForPaymentsEnabled: Boolean = false,
val isDevModeEnabled: Boolean = false,
val showWidgets: Boolean = false,
val showWidgets: Boolean = true,
val showWidgetTitles: Boolean = false,
val lastUsedTags: List<String> = emptyList(),
val enableSwipeToHideBalance: Boolean = true,
Expand Down
7 changes: 6 additions & 1 deletion app/src/main/java/to/bitkit/data/WidgetsStore.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class WidgetsStore @Inject constructor(
it.copy(calculatorValues = calculatorValues)
}
}

suspend fun updateArticles(articles: List<ArticleDTO>) {
store.updateData {
it.copy(articles = articles)
Expand Down Expand Up @@ -147,7 +148,11 @@ class WidgetsStore @Inject constructor(

@Serializable
data class WidgetsData(
val widgets: List<WidgetWithPosition> = emptyList(),
val widgets: List<WidgetWithPosition> = listOf(
WidgetWithPosition(type = WidgetType.PRICE, position = 0),
WidgetWithPosition(type = WidgetType.BLOCK, position = 1),
WidgetWithPosition(type = WidgetType.NEWS, position = 2),
),
val headlinePreferences: HeadlinePreferences = HeadlinePreferences(),
val factsPreferences: FactsPreferences = FactsPreferences(),
val blocksPreferences: BlocksPreferences = BlocksPreferences(),
Expand Down
Loading