prevent saving of incomplete account information to database

main
Conny Duck 6 years ago
parent 9807ee5f54
commit 1bbe0f7430
  1. 2
      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 ->

Loading…
Cancel
Save