mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-17 07:30:16 -05:00
added improvements suggested by achen
This commit is contained in:
parent
56105bcfe3
commit
7c007d19fb
Before Width: | Height: | Size: 410 B After Width: | Height: | Size: 410 B |
@ -2037,7 +2037,7 @@ public class MessageList
|
||||
mAttachmentIcon = getResources().getDrawable(R.drawable.ic_email_attachment_small);
|
||||
mAnsweredIcon = getResources().getDrawable(R.drawable.ic_email_answered_small);
|
||||
mForwardedIcon = getResources().getDrawable(R.drawable.ic_email_forwarded_small);
|
||||
mForwardedAnsweredIcon = getResources().getDrawable(R.drawable.ic_email_forwarded_answerred_small);
|
||||
mForwardedAnsweredIcon = getResources().getDrawable(R.drawable.ic_email_forwarded_answered_small);
|
||||
}
|
||||
|
||||
public void markAllMessagesAsDirty() {
|
||||
|
@ -157,7 +157,7 @@ public class MessagingController implements Runnable {
|
||||
// Key is accountUuid:folderName:messageUid , value is unimportant
|
||||
private ConcurrentHashMap<String, String> deletedUids = new ConcurrentHashMap<String, String>();
|
||||
|
||||
private static final Flag[] SYNCFLAGS = new Flag[] { Flag.SEEN, Flag.FLAGGED, Flag.ANSWERED, Flag.FORWARDED };
|
||||
private static final Flag[] SYNC_FLAGS = new Flag[] { Flag.SEEN, Flag.FLAGGED, Flag.ANSWERED, Flag.FORWARDED };
|
||||
|
||||
private String createMessageKey(Account account, String folder, Message message) {
|
||||
return createMessageKey(account, folder, message.getUid());
|
||||
@ -1765,7 +1765,7 @@ public class MessagingController implements Runnable {
|
||||
messageChanged = true;
|
||||
}
|
||||
} else {
|
||||
for (Flag flag : MessagingController.SYNCFLAGS) {
|
||||
for (Flag flag : MessagingController.SYNC_FLAGS) {
|
||||
if (remoteMessage.isSet(flag) != localMessage.isSet(flag)) {
|
||||
localMessage.setFlag(flag, remoteMessage.isSet(flag));
|
||||
messageChanged = true;
|
||||
|
Loading…
Reference in New Issue
Block a user