mirror of
https://github.com/etesync/android
synced 2025-01-25 15:10:55 +00:00
SetupEncryption: fix issue with inserting existing services.
This commit is contained in:
parent
990ab81c2b
commit
d8600f2f04
@ -178,10 +178,7 @@ class SetupEncryptionFragment : DialogFragment() {
|
|||||||
val data = (context!!.applicationContext as App).data
|
val data = (context!!.applicationContext as App).data
|
||||||
|
|
||||||
// insert service
|
// insert service
|
||||||
val serviceEntity = ServiceEntity()
|
val serviceEntity = ServiceEntity.fetchOrCreate(data, accountName, serviceType)
|
||||||
serviceEntity.account = accountName
|
|
||||||
serviceEntity.type = serviceType
|
|
||||||
data.upsert(serviceEntity)
|
|
||||||
|
|
||||||
// insert collections
|
// insert collections
|
||||||
for (collection in info.collections.values) {
|
for (collection in info.collections.values) {
|
||||||
|
Loading…
Reference in New Issue
Block a user