From 46d41c3c0f01385295bf74c6245bfd9aaad031c9 Mon Sep 17 00:00:00 2001 From: Leonard Date: Mon, 14 Oct 2024 00:04:19 +0200 Subject: [PATCH] minor fixes --- .../java/de/lemke/oneurl/data/UserSettingsRepository.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/de/lemke/oneurl/data/UserSettingsRepository.kt b/app/src/main/java/de/lemke/oneurl/data/UserSettingsRepository.kt index 2e01c94..52b1115 100644 --- a/app/src/main/java/de/lemke/oneurl/data/UserSettingsRepository.kt +++ b/app/src/main/java/de/lemke/oneurl/data/UserSettingsRepository.kt @@ -66,7 +66,7 @@ class UserSettingsRepository @Inject constructor( lastVersionCode = prefs[KEY_LAST_VERSION_CODE] ?: -1, lastVersionName = prefs[KEY_LAST_VERSION_NAME] ?: "0.0", darkMode = prefs[KEY_DARK_MODE] == true, - autoDarkMode = prefs[KEY_AUTO_DARK_MODE] == true, + autoDarkMode = prefs[KEY_AUTO_DARK_MODE] != false, tosAccepted = prefs[KEY_TOS_ACCEPTED] == true, devModeEnabled = prefs[KEY_DEV_MODE_ENABLED] == true, search = prefs[KEY_SEARCH] ?: "", @@ -79,8 +79,8 @@ class UserSettingsRepository @Inject constructor( qrRecentBackgroundColors = prefs[KEY_QR_RECENT_BACKGROUND_COLORS]?.split(",")?.map { it.toInt() } ?: listOf(-1), qrRecentForegroundColors = prefs[KEY_QR_RECENT_FOREGROUND_COLORS]?.split(",")?.map { it.toInt() } ?: listOf(-16777216), qrSize = prefs[KEY_QR_SIZE] ?: 512, - qrFrame = prefs[KEY_QR_FRAME] == true, - qrIcon = prefs[KEY_QR_ICON] == true, + qrFrame = prefs[KEY_QR_FRAME] != false, + qrIcon = prefs[KEY_QR_ICON] != false, qrTintAnchor = prefs[KEY_QR_TINT_ANCHOR] == true, qrTintBorder = prefs[KEY_QR_TINT_BORDER] == true, saveLocation = SaveLocation.entries[prefs[KEY_SAVE_LOCATION] ?: SaveLocation.default.ordinal],