1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-23 14:41:08 +00:00

Added import logging

This commit is contained in:
M66B 2021-07-29 19:31:50 +02:00
parent e6428cb530
commit 85066b95e5

View file

@ -880,8 +880,11 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
EntityAccount account = EntityAccount.fromJSON(jaccount);
EntityAccount existing = db.account().getAccountByUUID(account.uuid);
if (existing != null)
if (existing != null) {
EntityLog.log(context, "Existing account=" + account.name +
"id=" + account.id);
continue;
}
if (account.auth_type == AUTH_TYPE_GMAIL) {
if (GmailState.getAccount(context, account.user) == null) {
@ -908,7 +911,8 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
account.created = new Date().getTime();
account.id = db.account().insertAccount(account);
Log.i("Imported account=" + account.name + " id=" + account.id + " (" + aid + ")");
EntityLog.log(context, "Imported account=" + account.name +
" id=" + account.id + " (" + aid + ")");
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
account.deleteNotificationChannel(context);