Ignore voicemails when backing up call log am: 7e9861c0f8 am: ec1391ab08
am: 5e1b4bbfd0
Change-Id: I4499523edb01c2a9ce9862968e141657cc272a71
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 @@
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 @@
try {
while (cursor.moveToNext()) {
Call call = readCallFromCursor(cursor);
- if (call != null) {
+ if (call != null && call.type != Calls.VOICEMAIL_TYPE) {
calls.add(call);
}
}