1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-14 13:35:04 -05:00

Replace synchronous setting of a flag with async setting of the flag. This helps speed up message display time (anecdotally)

This commit is contained in:
Jesse Vincent 2013-07-11 16:08:22 -04:00
parent b27ffcf502
commit 5cec9e175b

View File

@ -3168,8 +3168,7 @@ public class MessagingController implements Runnable {
if (account.isMarkMessageAsReadOnView() && !message.isSet(Flag.SEEN)) {
List<Long> messageIds = Collections.singletonList(message.getId());
setFlagInCache(account, messageIds, Flag.SEEN, true);
setFlagSynchronous(account, messageIds, Flag.SEEN, true, false);
setFlag(account, messageIds, Flag.SEEN, true);
((LocalMessage) message).setFlagInternal(Flag.SEEN, true);
}