|
|
|
|
@ -105,11 +105,7 @@ class Preferences { |
|
|
|
|
editor.apply() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private fun getBoolean( |
|
|
|
|
key: PreferenceKey, |
|
|
|
|
context: Context, |
|
|
|
|
defaultValue: Boolean? = false |
|
|
|
|
): Boolean { |
|
|
|
|
private fun getBoolean(key: PreferenceKey, context: Context, defaultValue: Boolean? = false): Boolean { |
|
|
|
|
val preferences = PreferenceManager.getDefaultSharedPreferences(context) |
|
|
|
|
return preferences.getBoolean(key.identifier, defaultValue ?: false) |
|
|
|
|
} |
|
|
|
|
@ -202,6 +198,7 @@ class Preferences { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
class UserDefaults private constructor(context: Context) { |
|
|
|
|
|
|
|
|
|
init { |
|
|
|
|
setCurrencyValues(context) |
|
|
|
|
} |
|
|
|
|
|