From 59d254455d5446413750f1baf4228985e90225c1 Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Fri, 2 Mar 2018 21:25:58 +0100 Subject: [PATCH] prevent saving of incomplete account information to database --- app/src/main/java/com/keylesspalace/tusky/db/AccountManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/db/AccountManager.kt b/app/src/main/java/com/keylesspalace/tusky/db/AccountManager.kt index e0f09b65..378d27a0 100644 --- a/app/src/main/java/com/keylesspalace/tusky/db/AccountManager.kt +++ b/app/src/main/java/com/keylesspalace/tusky/db/AccountManager.kt @@ -137,7 +137,7 @@ class AccountManager { activeAccount?.let{ Log.d(TAG, "setActiveAccount: saving account with id "+it.id) it.isActive = false - accountDao.insertOrReplace(it) + saveAccount(it) } activeAccount = accounts.find { acc ->