Put combined account last
Bug: 7100404 Change-Id: Iff2884e635d030d840f297c15f5e2ee646185c5f
This commit is contained in:
parent
2c2508607c
commit
2651bcc7be
|
@ -1713,6 +1713,12 @@ public class Imap2SyncService extends AbstractSyncService {
|
|||
mResolver.update(ContentUris.withAppendedId(Mailbox.CONTENT_URI, id), values, null, null);
|
||||
}
|
||||
|
||||
public void setMailboxLastSyncResult(long id, int result) {
|
||||
ContentValues values = new ContentValues();
|
||||
values.put(Mailbox.UI_LAST_SYNC_RESULT, result);
|
||||
mResolver.update(ContentUris.withAppendedId(Mailbox.CONTENT_URI, id), values, null, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset the sync interval for this mailbox (account if it's Inbox)
|
||||
*/
|
||||
|
@ -1764,6 +1770,7 @@ public class Imap2SyncService extends AbstractSyncService {
|
|||
mSocket.setSoTimeout(IDLE_ASLEEP_MILLIS + (1*MINS));
|
||||
// Say we're no longer syncing (turn off indeterminate progress in the UI)
|
||||
setMailboxSyncStatus(mMailboxId, UIProvider.SyncStatus.NO_SYNC);
|
||||
setMailboxLastSyncResult(mMailboxId, UIProvider.LastSyncResult.SUCCESS);
|
||||
// Set an alarm for one minute before our timeout our expected IDLE time
|
||||
Imap2SyncManager.runAsleep(mMailboxId, IDLE_ASLEEP_MILLIS);
|
||||
|
||||
|
|
|
@ -3065,6 +3065,9 @@ outer:
|
|||
}
|
||||
accountCursor.close();
|
||||
}
|
||||
if (combinedAccount) {
|
||||
addCombinedAccountRow(mc);
|
||||
}
|
||||
} finally {
|
||||
accountIdCursor.close();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue