summaryrefslogtreecommitdiff
path: root/java/com/android/voicemail/stub
diff options
context:
space:
mode:
authormdooley <mdooley@google.com>2017-11-16 21:25:00 -0800
committerzachh <zachh@google.com>2017-11-18 07:34:02 +0000
commit22ff338e7383592443da291587442deb5f4e6758 (patch)
tree0cef544e68491f4c067b4e41b1b5d80909363394 /java/com/android/voicemail/stub
parente53711736e4da5ae7f722e54182f1cb51082d45c (diff)
Don't transcribe voicemail unless carrier allows OTT transcription
Added a carrier config and check to see if the carrier allows over the top voicemail transcription, and if not do not attempt transcription. Bug: 68951869 Test: manual and unit test PiperOrigin-RevId: 176065849 Change-Id: I69df1f2867420d7fdcc7f0a31e0e6c26da67abb1
Diffstat (limited to 'java/com/android/voicemail/stub')
-rw-r--r--java/com/android/voicemail/stub/StubVoicemailClient.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/java/com/android/voicemail/stub/StubVoicemailClient.java b/java/com/android/voicemail/stub/StubVoicemailClient.java
index fe063245f..cfbb3ec00 100644
--- a/java/com/android/voicemail/stub/StubVoicemailClient.java
+++ b/java/com/android/voicemail/stub/StubVoicemailClient.java
@@ -130,5 +130,11 @@ public final class StubVoicemailClient implements VoicemailClient {
}
@Override
- public void onTosAccepted(Context context) {}
+ public void onTosAccepted(Context context, PhoneAccountHandle account) {}
+
+ @Override
+ @Nullable
+ public String getCarrierConfigString(Context context, PhoneAccountHandle account, String key) {
+ return null;
+ }
}