diff options
author | Eric Erfanian <erfanian@google.com> | 2017-05-31 18:07:17 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-05-31 18:07:17 +0000 |
commit | ae06b1b3b86fcaffde9f94171bbb2b5649a95f14 (patch) | |
tree | 1f6349a450779c93e514fec9948d64e50d9b4e1e /java/com/android/voicemail/impl/sync/OmtpVvmSyncService.java | |
parent | 7f7f25f903e4649f12aaa255b32bd20cb4079183 (diff) | |
parent | 83b20211c3be04a850de3674977deee8e448d17f (diff) |
Update Dialer to v10 RC45.
am: 83b20211c3
Change-Id: Ide21415247a3ec743f5438c49d29ba2d861081b0
Diffstat (limited to 'java/com/android/voicemail/impl/sync/OmtpVvmSyncService.java')
-rw-r--r-- | java/com/android/voicemail/impl/sync/OmtpVvmSyncService.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/java/com/android/voicemail/impl/sync/OmtpVvmSyncService.java b/java/com/android/voicemail/impl/sync/OmtpVvmSyncService.java index 3443737cd..793388362 100644 --- a/java/com/android/voicemail/impl/sync/OmtpVvmSyncService.java +++ b/java/com/android/voicemail/impl/sync/OmtpVvmSyncService.java @@ -269,7 +269,9 @@ public class OmtpVvmSyncService { } if (readVoicemails.size() > 0) { + VvmLog.i(TAG, "Marking voicemails as read"); if (imapHelper.markMessagesAsRead(readVoicemails)) { + VvmLog.i(TAG, "Marking voicemails as clean"); mQueryHelper.markCleanInDatabase(readVoicemails); } else { success = false; @@ -306,7 +308,7 @@ public class OmtpVvmSyncService { if (remoteVoicemail == null) { mQueryHelper.deleteNonArchivedFromDatabase(localVoicemail); } else { - if (remoteVoicemail.isRead() != localVoicemail.isRead()) { + if (remoteVoicemail.isRead() && !localVoicemail.isRead()) { mQueryHelper.markReadInDatabase(localVoicemail); } |