Fix search mailbox status on early-out when searching
automerge: 207a35f
* commit '207a35f174a1004c6431b2e336d9ff29db47d0f5':
Fix search mailbox status on early-out when searching
This commit is contained in:
commit
65bf994534
@ -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
Block a user