1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-03 10:16:45 +00:00

Update account state on on demand sync

This commit is contained in:
M66B 2019-02-28 15:25:10 +00:00
parent e6cfe55aa2
commit 712e1a079c

View file

@ -11,6 +11,7 @@ import android.preference.PreferenceManager;
import com.sun.mail.imap.IMAPFolder;
import java.util.Date;
import java.util.Properties;
import javax.mail.Folder;
@ -262,6 +263,8 @@ public class ServiceUI extends IntentService {
istore = isession.getStore(account.getProtocol());
Helper.connect(this, istore, account);
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");
// Synchronize folders