summaryrefslogtreecommitdiff
path: root/java/com/android/voicemail/impl/transcribe/TranscriptionTask.java
diff options
context:
space:
mode:
authormdooley <mdooley@google.com>2017-11-29 08:53:31 -0800
committerCopybara-Service <copybara-piper@google.com>2017-11-29 11:50:44 -0800
commitb9ca335dbbc3325643549f6fbf2dac06a5502d26 (patch)
tree0145604277fbcf00e8bf48b835a5a9d7fb922e40 /java/com/android/voicemail/impl/transcribe/TranscriptionTask.java
parent00d18e0efe89d7bbd4c69de6988ef6f9a62df782 (diff)
Delete voicemails when disabling visual voicemail
For privacy reasons we now delete all voicemails and transcriptions when the user disables visual voicemail, (after confirming that they want to do this via a dialog). Note: we only delete voicemails whose source package is the google dialer. Note: the voicemails will be re-downloaded and re-transcribed if the user re-enables visual voicemail Bug: 69323147 Test: manual and unit test PiperOrigin-RevId: 177315139 Change-Id: Ie04496dc5960b485794733fbf74f7f704e806023
Diffstat (limited to 'java/com/android/voicemail/impl/transcribe/TranscriptionTask.java')
-rw-r--r--java/com/android/voicemail/impl/transcribe/TranscriptionTask.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/android/voicemail/impl/transcribe/TranscriptionTask.java b/java/com/android/voicemail/impl/transcribe/TranscriptionTask.java
index d483f6fbd..ca3320f28 100644
--- a/java/com/android/voicemail/impl/transcribe/TranscriptionTask.java
+++ b/java/com/android/voicemail/impl/transcribe/TranscriptionTask.java
@@ -55,10 +55,10 @@ import com.google.protobuf.ByteString;
public abstract class TranscriptionTask implements Runnable {
private static final String TAG = "TranscriptionTask";
- protected final Context context;
private final JobCallback callback;
private final JobWorkItem workItem;
private final TranscriptionClientFactory clientFactory;
+ protected final Context context;
protected final Uri voicemailUri;
protected final PhoneAccountHandle phoneAccountHandle;
protected final TranscriptionConfigProvider configProvider;