From 0feba780889cb1e67df64a457109fc6134111261 Mon Sep 17 00:00:00 2001 From: mdooley Date: Wed, 16 Aug 2017 13:25:50 -0700 Subject: Transcribe old voicemails This cl adds a transcription backfill service to transcribe old voicemails. This service queries the database for any voicemails without a transcription and whose transcription_state column has not been set and schedules a transcription task to update them. This service is only run once, after the user accepts the voicemail TOS and we have an un-metered network connection. Bug: 62423649 Test: manual and updated unit tests PiperOrigin-RevId: 165486104 Change-Id: Ic85c9d728937411638074fec07cf44bb83862acb --- .../android/dialer/app/voicemail/error/VoicemailTosMessageCreator.java | 1 + 1 file changed, 1 insertion(+) (limited to 'java/com/android/dialer/app') diff --git a/java/com/android/dialer/app/voicemail/error/VoicemailTosMessageCreator.java b/java/com/android/dialer/app/voicemail/error/VoicemailTosMessageCreator.java index 865d2527a..427d3eda5 100644 --- a/java/com/android/dialer/app/voicemail/error/VoicemailTosMessageCreator.java +++ b/java/com/android/dialer/app/voicemail/error/VoicemailTosMessageCreator.java @@ -232,6 +232,7 @@ public class VoicemailTosMessageCreator { .putInt(DIALER_TOS_VERSION_ACCEPTED_KEY, CURRENT_DIALER_TOS_VERSION) .apply(); } + VoicemailComponent.get(context).getVoicemailClient().onTosAccepted(context); } private void logTosCreatedImpression() { -- cgit v1.2.3