diff options
| author | Nancy Chen <nancychen@google.com> | 2015-08-19 19:33:38 -0700 |
|---|---|---|
| committer | Nancy Chen <nancychen@google.com> | 2015-08-20 16:30:01 +0000 |
| commit | 42f5cb37b049a2cb1b047ae997538ac3afb90a21 (patch) | |
| tree | 5304f84ffe894014164ee48c0983d05d46517516 | |
| parent | d9eb7da8777390662732098edae8930fda567953 (diff) | |
| download | platform_packages_services_Telephony-marshmallow-dev.tar.gz platform_packages_services_Telephony-marshmallow-dev.tar.bz2 platform_packages_services_Telephony-marshmallow-dev.zip | |
Only mark as read voicemails with the "is_read" flag set.marshmallow-dev
The vvm sync service was querying for all voicemails with the "dirty"
bit set instead of voicemails that had actually been read and then
marking the voicemail as "read" locally. This resulted in voicemails
being marked as read that had not been listened to by the user.
Bug: 23351142
Change-Id: I24500fca0e835f643b3c635d498f51947359a481
| -rw-r--r-- | src/com/android/phone/vvm/omtp/sync/VoicemailsQueryHelper.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/phone/vvm/omtp/sync/VoicemailsQueryHelper.java b/src/com/android/phone/vvm/omtp/sync/VoicemailsQueryHelper.java index b86351cbb..8e2c76a8f 100644 --- a/src/com/android/phone/vvm/omtp/sync/VoicemailsQueryHelper.java +++ b/src/com/android/phone/vvm/omtp/sync/VoicemailsQueryHelper.java @@ -48,7 +48,8 @@ public class VoicemailsQueryHelper { public static final int IS_READ = 2; public static final int DELETED = 3; - final static String READ_SELECTION = Voicemails.DIRTY + "=1 AND " + Voicemails.DELETED + "!=1"; + final static String READ_SELECTION = Voicemails.DIRTY + "=1 AND " + + Voicemails.DELETED + "!=1 AND " + Voicemails.IS_READ + "=1"; final static String DELETED_SELECTION = Voicemails.DELETED + "=1"; private Context mContext; |
