We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f25864e commit 1a9e13aCopy full SHA for 1a9e13a
app/src/main/java/co/stonephone/stonecamera/StoneCameraViewModel.kt
@@ -193,7 +193,7 @@ class StoneCameraViewModel(
193
194
@Suppress("UNCHECKED_CAST")
195
return when (defaultValue) {
196
- is TranslatableString -> (prefs.getString(settingKey, defaultValue.resolve())) as? T
+ is TranslatableString -> prefs.getString(settingKey, defaultValue.resolve()) as? T
197
is Float -> prefs.getFloat(settingKey, defaultValue) as? T
198
else -> null
199
}
0 commit comments