mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-03 18:26:20 +00:00
Update account state on on demand sync
This commit is contained in:
parent
e6cfe55aa2
commit
712e1a079c
1 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,7 @@ import android.preference.PreferenceManager;
|
||||||
|
|
||||||
import com.sun.mail.imap.IMAPFolder;
|
import com.sun.mail.imap.IMAPFolder;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
import javax.mail.Folder;
|
import javax.mail.Folder;
|
||||||
|
@ -262,6 +263,8 @@ public class ServiceUI extends IntentService {
|
||||||
istore = isession.getStore(account.getProtocol());
|
istore = isession.getStore(account.getProtocol());
|
||||||
Helper.connect(this, istore, account);
|
Helper.connect(this, istore, account);
|
||||||
db.account().setAccountState(account.id, "connected");
|
db.account().setAccountState(account.id, "connected");
|
||||||
|
db.account().setAccountConnected(account.id, new Date().getTime());
|
||||||
|
db.account().setAccountError(account.id, null);
|
||||||
Log.i(account.name + " connected");
|
Log.i(account.name + " connected");
|
||||||
|
|
||||||
// Synchronize folders
|
// Synchronize folders
|
||||||
|
|
Loading…
Reference in a new issue