Added account warning

This commit is contained in:
M66B
2019-03-27 08:19:11 +00:00
parent 05f4c7497e
commit 3acb07b916
7 changed files with 1686 additions and 3 deletions

View File

@@ -970,7 +970,7 @@ public class ServiceSynchronize extends LifecycleService {
account.last_connected = new Date().getTime();
EntityLog.log(this, account.name + " set last_connected=" + new Date(account.last_connected));
db.account().setAccountConnected(account.id, account.last_connected);
db.account().setAccountError(account.id, capIdle ? null : getString(R.string.title_no_idle));
db.account().setAccountWarning(account.id, capIdle ? null : getString(R.string.title_no_idle));
NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
nm.cancel("receive", account.id.intValue());