mirror of
https://github.com/accelforce/Yuito
synced 2025-02-03 09:17:38 +01:00
prevent saving of incomplete account information to database
This commit is contained in:
parent
fec1dbc470
commit
59d254455d
@ -137,7 +137,7 @@ class AccountManager {
|
|||||||
activeAccount?.let{
|
activeAccount?.let{
|
||||||
Log.d(TAG, "setActiveAccount: saving account with id "+it.id)
|
Log.d(TAG, "setActiveAccount: saving account with id "+it.id)
|
||||||
it.isActive = false
|
it.isActive = false
|
||||||
accountDao.insertOrReplace(it)
|
saveAccount(it)
|
||||||
}
|
}
|
||||||
|
|
||||||
activeAccount = accounts.find { acc ->
|
activeAccount = accounts.find { acc ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user