am 544b00f0: am 5a33a789: am c48b9669: am 65bf9945: Fix search mailbox status on early-out when searching automerge: 207a35f
* commit '544b00f00989b11b70b9c150d0d856964a28f390': Fix search mailbox status on early-out when searching
This commit is contained in:
commit
eb7a2e7811
|
@ -1505,6 +1505,10 @@ public class ImapService extends Service {
|
|||
Math.min(numSearchResults - searchParams.mOffset, searchParams.mLimit);
|
||||
destMailbox.updateMessageCount(context, numSearchResults);
|
||||
if (numToLoad <= 0) {
|
||||
// Tell UI that we're done loading messages
|
||||
statusValues.put(Mailbox.SYNC_TIME, System.currentTimeMillis());
|
||||
statusValues.put(Mailbox.UI_SYNC_STATUS, UIProvider.SyncStatus.NO_SYNC);
|
||||
destMailbox.update(context, statusValues);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue