From 701acb004f07c5ec250538a0167d05db4f2b5451 Mon Sep 17 00:00:00 2001 From: davotoula Date: Mon, 6 Oct 2025 18:52:14 +0200 Subject: [PATCH] remove unnecessary suspend --- .../main/java/com/vitorpamplona/amethyst/LocalPreferences.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/LocalPreferences.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/LocalPreferences.kt index 1ba92a1df..8ffd0646e 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/LocalPreferences.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/LocalPreferences.kt @@ -389,7 +389,7 @@ object LocalPreferences { suspend fun loadAccountConfigFromEncryptedStorage(): AccountSettings? = currentAccount()?.let { loadAccountConfigFromEncryptedStorage(it) } - suspend fun saveSharedSettings( + fun saveSharedSettings( sharedSettings: UiSettings, 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") with(prefs) { return try {