summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruabdullah <uabdullah@google.com>2018-03-28 21:00:12 +0000
committerandroid-build-merger <android-build-merger@google.com>2018-03-28 21:00:12 +0000
commit0813d29a6397e6f7941559ff920b3bf8f831798c (patch)
tree6d7e8f689190b68ed5db7b6df50fd33df68316f7
parent1dc6d6722590fd38431d56f3d7bef6407342bc23 (diff)
parentb48f2ab459b70917f749a3b701f3b0c267e7fbf4 (diff)
Merge "Turn transcription on if new user accepts Dialer ToS"
am: b48f2ab459 Change-Id: I6a3d8b1a52da52350da44e2da06543f6a464a594
-rw-r--r--java/com/android/dialer/voicemail/listui/error/VoicemailTosMessageCreator.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/java/com/android/dialer/voicemail/listui/error/VoicemailTosMessageCreator.java b/java/com/android/dialer/voicemail/listui/error/VoicemailTosMessageCreator.java
index 15eaa423e..62252121e 100644
--- a/java/com/android/dialer/voicemail/listui/error/VoicemailTosMessageCreator.java
+++ b/java/com/android/dialer/voicemail/listui/error/VoicemailTosMessageCreator.java
@@ -108,6 +108,12 @@ public class VoicemailTosMessageCreator {
@Override
public void onClick(View v) {
LogUtil.i("VoicemailTosMessageCreator.getTosMessage", "accept clicked");
+ if (isVoicemailTranscriptionAvailable()) {
+ VoicemailComponent.get(context)
+ .getVoicemailClient()
+ .setVoicemailTranscriptionEnabled(
+ context, status.getPhoneAccountHandle(), true);
+ }
recordTosAcceptance();
// Accepting the TOS also acknowledges the latest features
recordFeatureAcknowledgement();