From 6eaae86b1245cea1228e1e13850b08f05aebb296 Mon Sep 17 00:00:00 2001 From: Sad Ellie Date: Wed, 13 Sep 2023 10:12:09 +0300 Subject: [PATCH] Fix initial state for Partial history view option --- .../java/com/sadellie/unitto/data/userprefs/UserPreferences.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/userprefs/src/main/java/com/sadellie/unitto/data/userprefs/UserPreferences.kt b/data/userprefs/src/main/java/com/sadellie/unitto/data/userprefs/UserPreferences.kt index 58f7fe43..1f202d61 100644 --- a/data/userprefs/src/main/java/com/sadellie/unitto/data/userprefs/UserPreferences.kt +++ b/data/userprefs/src/main/java/com/sadellie/unitto/data/userprefs/UserPreferences.kt @@ -213,7 +213,7 @@ class UserPreferencesRepository @Inject constructor(private val dataStore: DataS val unitConverterSorting: UnitsListSorting = preferences[PrefsKeys.UNIT_CONVERTER_SORTING]?.let { UnitsListSorting.valueOf(it) } ?: UnitsListSorting.USAGE val middleZero: Boolean = preferences[PrefsKeys.MIDDLE_ZERO] ?: false val enableToolsExperiment: Boolean = preferences[PrefsKeys.ENABLE_TOOLS_EXPERIMENT] ?: false - val partialHistoryView: Boolean = preferences[PrefsKeys.PARTIAL_HISTORY_VIEW] ?: false + val partialHistoryView: Boolean = preferences[PrefsKeys.PARTIAL_HISTORY_VIEW] ?: true MainPreferences( digitsPrecision = digitsPrecision,