diff options
author | uabdullah <uabdullah@google.com> | 2018-03-22 18:32:26 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-03-26 22:17:03 -0700 |
commit | 74831c35e09344ef700efbdac4ec14d6590be40f (patch) | |
tree | d46d57c1823d6ecdd78b4162eaa5ccb5f8f65b20 /java/com/android/voicemail/impl/utils/VoicemailDatabaseUtil.java | |
parent | 4fde0acedbfb4802ac3ee236507a0c5a485f59e7 (diff) |
Delete locally transcribed transcripts when transcription is turned off.
When a user turns off transcription setting we should delete all the voicemails locally transcribed by google. We do this by deleting all the transcripts associated with the source package of the app.
Bug: 74033229,76167428
Test: Unit Test
PiperOrigin-RevId: 190159353
Change-Id: I328aece594aa0e66de59e43fa3619b5e9ae15f78
Diffstat (limited to 'java/com/android/voicemail/impl/utils/VoicemailDatabaseUtil.java')
-rw-r--r-- | java/com/android/voicemail/impl/utils/VoicemailDatabaseUtil.java | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/java/com/android/voicemail/impl/utils/VoicemailDatabaseUtil.java b/java/com/android/voicemail/impl/utils/VoicemailDatabaseUtil.java index ef5447d32..711d6a8a4 100644 --- a/java/com/android/voicemail/impl/utils/VoicemailDatabaseUtil.java +++ b/java/com/android/voicemail/impl/utils/VoicemailDatabaseUtil.java @@ -57,16 +57,6 @@ public class VoicemailDatabaseUtil { return voicemails.size(); } - /** - * Delete all the voicemails whose source_package field matches this package - * - * @return the number of voicemails deleted - */ - public static int deleteAll(Context context) { - ContentResolver contentResolver = context.getContentResolver(); - return contentResolver.delete(Voicemails.buildSourceUri(context.getPackageName()), null, null); - } - /** Maps structured {@link Voicemail} to {@link ContentValues} in content provider. */ private static ContentValues getContentValues(Voicemail voicemail) { ContentValues contentValues = new ContentValues(); |