Warn about account problems

This commit is contained in:
M66B
2018-11-19 14:14:02 +01:00
parent 9fac677c4a
commit 73df0e41b9
10 changed files with 1166 additions and 5 deletions

View File

@@ -650,6 +650,8 @@ public class FragmentAccount extends FragmentEx {
if (Color.TRANSPARENT == color)
color = null;
long now = new Date().getTime();
DB db = DB.getInstance(context);
EntityAccount account = db.account().getAccount(id);
@@ -708,7 +710,9 @@ public class FragmentAccount extends FragmentEx {
account.primary = (account.synchronize && primary);
account.poll_interval = Integer.parseInt(interval);
account.created = new Date().getTime();
account.created = now;
if (synchronize)
account.last_connected = now;
if (!synchronize)
account.error = null;