diff options
author | Nancy Chen <nancychen@google.com> | 2015-06-19 17:42:21 -0700 |
---|---|---|
committer | Nancy Chen <nancychen@google.com> | 2015-06-23 12:02:32 -0700 |
commit | 5c466282ff1ebecb37c93dcb6d6ccfc845330e65 (patch) | |
tree | 77b57450152007a18536377c97368ac754769475 /src/com/android | |
parent | 876a6a921e532b6c1ca653e4c52c1819a75ff3be (diff) | |
download | packages_providers_ContactsProvider-5c466282ff1ebecb37c93dcb6d6ccfc845330e65.zip packages_providers_ContactsProvider-5c466282ff1ebecb37c93dcb6d6ccfc845330e65.tar.gz packages_providers_ContactsProvider-5c466282ff1ebecb37c93dcb6d6ccfc845330e65.tar.bz2 |
Fix read voicemails being marked as "new".
Originally was comparing content values with "1" but some other sources
use "true", check for boolean value instead of integer value.
Bug: 21281858
Change-Id: I0124311ba7343826d094c621e6b2899053d6dabf
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/providers/contacts/VoicemailContentTable.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/providers/contacts/VoicemailContentTable.java b/src/com/android/providers/contacts/VoicemailContentTable.java index 87a2349..5cf1f35 100644 --- a/src/com/android/providers/contacts/VoicemailContentTable.java +++ b/src/com/android/providers/contacts/VoicemailContentTable.java @@ -142,7 +142,7 @@ public class VoicemailContentTable implements VoicemailTable.Delegate { copiedValues.put(Calls.TYPE, Calls.VOICEMAIL_TYPE); // A voicemail is marked as new unless it is marked as read or explicitly overridden. boolean isRead = values.containsKey(Calls.IS_READ) ? - values.get(Calls.IS_READ).equals(1) : false; + values.getAsBoolean(Calls.IS_READ) : false; if (!values.containsKey(Calls.NEW)) { copiedValues.put(Calls.NEW, !isRead); } |