mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-15 08:29:24 +00:00
Small improvement
This commit is contained in:
parent
7b55d4e0fc
commit
3dda075978
1 changed files with 3 additions and 4 deletions
|
@ -955,10 +955,6 @@ public class ServiceSynchronize extends LifecycleService {
|
|||
Log.i(account.name + " idle=" + capIdle + " uidplus=" + capUidPlus);
|
||||
|
||||
db.account().setAccountState(account.id, "connected");
|
||||
|
||||
NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
|
||||
nm.cancel("receive", account.id.intValue());
|
||||
|
||||
EntityLog.log(this, account.name + " connected");
|
||||
|
||||
// Update folder list
|
||||
|
@ -1325,6 +1321,9 @@ public class ServiceSynchronize extends LifecycleService {
|
|||
db.account().setAccountConnected(account.id, last_connected.getTime());
|
||||
db.account().setAccountError(account.id, capIdle ? null : getString(R.string.title_no_idle));
|
||||
|
||||
NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
|
||||
nm.cancel("receive", account.id.intValue());
|
||||
|
||||
// Schedule keep alive alarm
|
||||
EntityLog.log(this, account.name + " wait=" + account.poll_interval);
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M)
|
||||
|
|
Loading…
Add table
Reference in a new issue