Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lemkinator committed Oct 13, 2024
1 parent e28176f commit 46d41c3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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] ?: "",
Expand All @@ -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],
Expand Down

0 comments on commit 46d41c3

Please sign in to comment.