summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authoruabdullah <uabdullah@google.com>2018-03-28 10:41:41 -0700
committerCopybara-Service <copybara-piper@google.com>2018-03-28 11:23:37 -0700
commit690c73a5277e72a1105d47ba0ef3c505e862b372 (patch)
tree6d7e8f689190b68ed5db7b6df50fd33df68316f7 /java
parentc6b28a1fc9956a6ebf0257b11b28e6fe9313c936 (diff)
Turn transcription on if new user accepts Dialer ToS
When a user accepts the Dialer ToS for the first time, we should also enable transcription if it is available. Bug: 74033229 Test: N/A PiperOrigin-RevId: 190794147 Change-Id: I7eb9b3d481426aceb55a8990fdbd246101937e7b
Diffstat (limited to 'java')
-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();