prevent saving of incomplete account information to database

This commit is contained in:
Conny Duck 2018-03-02 21:25:58 +01:00
parent fec1dbc470
commit 59d254455d
1 changed files with 1 additions and 1 deletions

View File

@ -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 ->