Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
[BUG] Added Missing default values for IvyFeatures (#3632)
Browse files Browse the repository at this point in the history
* Added Missing default values for IvyFeatures

* Added Missing default values for IvyFeatures(Removed Default value for BoolFeature.defaultValue)
  • Loading branch information
shamim-emon authored Oct 20, 2024
1 parent 70eb664 commit 71fdaa2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class BoolFeature(
val group: FeatureGroup? = null,
val name: String? = null,
val description: String? = null,
private val defaultValue: Boolean = false
private val defaultValue: Boolean
) {
@Composable
fun asEnabledState(): Boolean {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,24 @@ class IvyFeatures @Inject constructor() : Features {
key = "sort_categories_ascending",
group = FeatureGroup.Category,
name = "Sort categories list",
description = "Show categories in ascending order (A-Z) on the transaction entry screen"
description = "Show categories in ascending order (A-Z) on the transaction entry screen",
defaultValue = false
)

override val compactAccountsMode = BoolFeature(
key = "compact_account_ui",
group = FeatureGroup.Account,
name = "Compact account cards",
description = "Make the Accounts tab UI more compact and dense"
description = "Make the Accounts tab UI more compact and dense",
defaultValue = false
)

override val compactCategoriesMode = BoolFeature(
key = "compact_category_ui",
group = FeatureGroup.Category,
name = "Compact category cards",
description = "Simplified design of the Categories screen"
description = "Simplified design of the Categories screen",
defaultValue = false
)

override val showTitleSuggestions = BoolFeature(
Expand Down

0 comments on commit 71fdaa2

Please sign in to comment.