From 83b20211c3be04a850de3674977deee8e448d17f Mon Sep 17 00:00:00 2001 From: Eric Erfanian Date: Wed, 31 May 2017 08:53:10 -0700 Subject: Update Dialer to v10 RC45. This release was created following the instructions at: go/dialer-aosp-release Subsequent dialer releases will follow as O bugs are fixed, until we reach our final RC. Version: 10 Candidate: RC45 Branch: dialer-android_release_branch/153304843.1 dialer-android_20170416.00/dialer-android_20170416.00_RC45 This release contains the following bug fixes since RC39: Bug: 38131932 38302993 38347350 38368993 38395481 62100344 Test: make, on device Change-Id: Ib4af5dcc58c684d51ea1f4628b301e40184b81b3 --- java/com/android/voicemail/impl/sync/OmtpVvmSyncService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'java/com/android/voicemail/impl') 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); } -- cgit v1.2.3