diff options
author | Hall Liu <hallliu@google.com> | 2018-01-10 13:46:39 -0800 |
---|---|---|
committer | Hall Liu <hallliu@google.com> | 2018-01-10 13:46:39 -0800 |
commit | 7e9861c0f83c5e2093d7ac75812ad840e0d98803 (patch) | |
tree | 0d1eb32b521250737c801a6d48645f09f1b73964 | |
parent | 878cb1d10e771d48e473bef9f4fb7f4ad6a728de (diff) | |
download | android_packages_providers_CallLogProvider-7e9861c0f83c5e2093d7ac75812ad840e0d98803.tar.gz android_packages_providers_CallLogProvider-7e9861c0f83c5e2093d7ac75812ad840e0d98803.tar.bz2 android_packages_providers_CallLogProvider-7e9861c0f83c5e2093d7ac75812ad840e0d98803.zip |
Ignore voicemails when backing up call log
Voicemails are backed by durable carrier-side storage -- we don't need
to back them up as part of the call log.
Change-Id: Ib36590e4f5c67f6f33a95e7e3b63d8249c821699
Fixes: 69183635
Test: manual
-rw-r--r-- | src/com/android/calllogbackup/CallLogBackupAgent.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/calllogbackup/CallLogBackupAgent.java b/src/com/android/calllogbackup/CallLogBackupAgent.java index 6056f48..5a36c02 100644 --- a/src/com/android/calllogbackup/CallLogBackupAgent.java +++ b/src/com/android/calllogbackup/CallLogBackupAgent.java @@ -181,7 +181,7 @@ public class CallLogBackupAgent extends BackupAgent { while (data.readNextHeader()) { Call call = readCallFromData(data); - if (call != null) { + if (call != null && call.type != Calls.VOICEMAIL_TYPE) { writeCallToProvider(call); if (isDebug()) { Log.d(TAG, "Restored call: " + call); @@ -238,7 +238,7 @@ public class CallLogBackupAgent extends BackupAgent { try { while (cursor.moveToNext()) { Call call = readCallFromCursor(cursor); - if (call != null) { + if (call != null && call.type != Calls.VOICEMAIL_TYPE) { calls.add(call); } } |