From 690c73a5277e72a1105d47ba0ef3c505e862b372 Mon Sep 17 00:00:00 2001 From: uabdullah Date: Wed, 28 Mar 2018 10:41:41 -0700 Subject: 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 --- .../dialer/voicemail/listui/error/VoicemailTosMessageCreator.java | 6 ++++++ 1 file changed, 6 insertions(+) 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(); -- cgit v1.2.3