mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-31 19:41:19 +00:00
Updated account connected time on folder sync
This commit is contained in:
parent
ee5d9b9f08
commit
ab9d80887f
2 changed files with 3 additions and 0 deletions
|
@ -129,6 +129,7 @@ public class AdapterNavFolder extends RecyclerView.Adapter<AdapterNavFolder.View
|
|||
tvItem.setTypeface(count == 0 ? Typeface.DEFAULT : Typeface.DEFAULT_BOLD);
|
||||
|
||||
tvItemExtra.setText(folder.last_sync == null ? null : DTF.format(folder.last_sync));
|
||||
tvItemExtra.setVisibility(debug ? View.VISIBLE : View.GONE);
|
||||
|
||||
ivExternal.setVisibility(View.GONE);
|
||||
ivWarning.setVisibility(folder.error == null ? View.GONE : View.VISIBLE);
|
||||
|
|
|
@ -1930,6 +1930,8 @@ class Core {
|
|||
|
||||
int count = ifolder.getMessageCount();
|
||||
db.folder().setFolderTotal(folder.id, count < 0 ? null : count);
|
||||
account.last_connected = new Date().getTime();
|
||||
db.account().setAccountConnected(account.id, account.last_connected);
|
||||
|
||||
if (download && initialize == 0) {
|
||||
db.folder().setFolderSyncState(folder.id, "downloading");
|
||||
|
|
Loading…
Reference in a new issue