diff options
author | Nancy Chen <nancychen@google.com> | 2015-07-17 16:37:39 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-07-17 16:37:43 +0000 |
commit | 660322d8259cb256745f15219af0b9004063ea8d (patch) | |
tree | 6eb42b12564724011ab42d282c8aaf93a9f90bcb /core | |
parent | 593aca12c2f7bf39ca8d4ae944f36a88bd4a48cf (diff) | |
parent | 5bd3e73a21975166fe39ccdfaf3376ad4f8fb369 (diff) | |
download | frameworks_base-660322d8259cb256745f15219af0b9004063ea8d.zip frameworks_base-660322d8259cb256745f15219af0b9004063ea8d.tar.gz frameworks_base-660322d8259cb256745f15219af0b9004063ea8d.tar.bz2 |
Merge "Add transcription field to voicemail object and related changes." into mnc-dev
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/provider/VoicemailContract.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/java/android/provider/VoicemailContract.java b/core/java/android/provider/VoicemailContract.java index e1b5a6d..76eaea9 100644 --- a/core/java/android/provider/VoicemailContract.java +++ b/core/java/android/provider/VoicemailContract.java @@ -314,11 +314,16 @@ public class VoicemailContract { contentValues.put(Voicemails.IS_READ, voicemail.isRead() ? 1 : 0); PhoneAccountHandle phoneAccount = voicemail.getPhoneAccount(); - if (voicemail.getPhoneAccount() != null) { + if (phoneAccount != null) { contentValues.put(Voicemails.PHONE_ACCOUNT_COMPONENT_NAME, phoneAccount.getComponentName().flattenToString()); contentValues.put(Voicemails.PHONE_ACCOUNT_ID, phoneAccount.getId()); } + + if (voicemail.getTranscription() != null) { + contentValues.put(Voicemails.TRANSCRIPTION, voicemail.getTranscription()); + } + return contentValues; } } |