mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 20:16:45 +01:00
remove unnecessary suspend
This commit is contained in:
@@ -389,7 +389,7 @@ object LocalPreferences {
|
|||||||
|
|
||||||
suspend fun loadAccountConfigFromEncryptedStorage(): AccountSettings? = currentAccount()?.let { loadAccountConfigFromEncryptedStorage(it) }
|
suspend fun loadAccountConfigFromEncryptedStorage(): AccountSettings? = currentAccount()?.let { loadAccountConfigFromEncryptedStorage(it) }
|
||||||
|
|
||||||
suspend fun saveSharedSettings(
|
fun saveSharedSettings(
|
||||||
sharedSettings: UiSettings,
|
sharedSettings: UiSettings,
|
||||||
prefs: SharedPreferences = encryptedPreferences(),
|
prefs: SharedPreferences = encryptedPreferences(),
|
||||||
) {
|
) {
|
||||||
@@ -399,7 +399,7 @@ object LocalPreferences {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
suspend fun loadSharedSettings(prefs: SharedPreferences = encryptedPreferences()): UiSettings? {
|
fun loadSharedSettings(prefs: SharedPreferences = encryptedPreferences()): UiSettings? {
|
||||||
Log.d("LocalPreferences", "Load shared settings")
|
Log.d("LocalPreferences", "Load shared settings")
|
||||||
with(prefs) {
|
with(prefs) {
|
||||||
return try {
|
return try {
|
||||||
|
|||||||
Reference in New Issue
Block a user