summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruabdullah <uabdullah@google.com>2018-03-28 21:18:20 +0000
committerandroid-build-merger <android-build-merger@google.com>2018-03-28 21:18:20 +0000
commit213a1a1455b110d52c769acb8d88a753108c8ec4 (patch)
treee9cf83bcfdf9e0ba12d692a9b6a5bb3395553657
parent043159bbba13fc013c33921587fe47e25235185a (diff)
parent0813d29a6397e6f7941559ff920b3bf8f831798c (diff)
Merge "Turn transcription on if new user accepts Dialer ToS" am: b48f2ab459
am: 0813d29a63 Change-Id: I831b185c05f583121154145f6db7b528a668ea91
-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();