diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-04-02 23:28:17 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-04-02 23:28:17 +0000 |
commit | c81fbd75f18621d7ce68c8df65cc468efe6ffe23 (patch) | |
tree | addc0f3effc997c2b1563bcf57ab1f440e686740 /java/com/android/voicemail/impl/OmtpVvmCarrierConfigHelper.java | |
parent | 8b25da85e94169782ba770c5813bd77f8fc29e60 (diff) | |
parent | 512ae93076377d771979f86e59913a85211169a0 (diff) |
Merge "Disable transcrption downloads for T-Mobile."
Diffstat (limited to 'java/com/android/voicemail/impl/OmtpVvmCarrierConfigHelper.java')
-rw-r--r-- | java/com/android/voicemail/impl/OmtpVvmCarrierConfigHelper.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/java/com/android/voicemail/impl/OmtpVvmCarrierConfigHelper.java b/java/com/android/voicemail/impl/OmtpVvmCarrierConfigHelper.java index 8896bc740..032153d77 100644 --- a/java/com/android/voicemail/impl/OmtpVvmCarrierConfigHelper.java +++ b/java/com/android/voicemail/impl/OmtpVvmCarrierConfigHelper.java @@ -88,6 +88,7 @@ public class OmtpVvmCarrierConfigHelper { "vvm_disabled_capabilities_string_array"; public static final String KEY_VVM_CLIENT_PREFIX_STRING = "vvm_client_prefix_string"; + private static final String KEY_IGNORE_TRANSCRIPTION_BOOL = "vvm_ignore_transcription"; @Nullable private static PersistableBundle overrideConfigForTest; @@ -517,4 +518,13 @@ public class OmtpVvmCarrierConfigHelper { } return false; } + + /** + * Suppress the behavior of treating any text attachment with MIME "text/*" as transcription, + * default to false. + */ + public boolean ignoreTranscription() { + Assert.checkArgument(isValid()); + return (boolean) getValue(KEY_IGNORE_TRANSCRIPTION_BOOL, false); + } } |