diff options
author | twyen <twyen@google.com> | 2018-04-02 14:45:57 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-04-02 16:25:47 -0700 |
commit | 512ae93076377d771979f86e59913a85211169a0 (patch) | |
tree | addc0f3effc997c2b1563bcf57ab1f440e686740 /java/com/android/voicemail/impl/imap | |
parent | 8b25da85e94169782ba770c5813bd77f8fc29e60 (diff) |
Disable transcrption downloads for T-Mobile.
In this CL, the client will stop treating text/* attachments as transcrptions for T-mobile. Transcriptions are already disabled by the device type sent during provisioning so this will not affect any existing functionality. This prevents other data on the server showing up as transcription.
Bug: 77342321
Test: TAP, exact behavior not testable.
PiperOrigin-RevId: 191350836
Change-Id: I758996c3fef75ece7cecf0f7a0b4df7ace970d80
Diffstat (limited to 'java/com/android/voicemail/impl/imap')
-rw-r--r-- | java/com/android/voicemail/impl/imap/ImapHelper.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/android/voicemail/impl/imap/ImapHelper.java b/java/com/android/voicemail/impl/imap/ImapHelper.java index 1f04edbef..02453f7da 100644 --- a/java/com/android/voicemail/impl/imap/ImapHelper.java +++ b/java/com/android/voicemail/impl/imap/ImapHelper.java @@ -571,7 +571,7 @@ public class ImapHelper implements Closeable { if (bodyPartMimeType.startsWith("audio/")) { messageStructureWrapper.messageStructure = message; - } else if (bodyPartMimeType.startsWith("text/")) { + } else if (!config.ignoreTranscription() && bodyPartMimeType.startsWith("text/")) { messageStructureWrapper.transcriptionBodyPart = bodyPart; } else { VvmLog.v(TAG, "Unknown bodyPart MIME: " + bodyPartMimeType); |