From a172ae826f3e53c637d239a354acd0a0dd9f40be Mon Sep 17 00:00:00 2001 From: Roshan Pius Date: Tue, 4 Aug 2015 13:27:39 -0700 Subject: Mark missed calls as read in calllog restore(1/2) When missed calls are restored by CalllogBackupAgent using the addCall API of CallLog provider, we were setting the IS_READ flag to 0 which resulted in user getting a missed call notifications for all missed calls after restore. Adding a new addCall API signature which can specify the value to be put in the IS_READ field when a call is added to the calllog provider. This will be used by the CallLogBackupAgent to mark all restored missed calls as read. BUG: 22908952 Change-Id: Ie8e6619b75801c8f0ba4f554a5c3e67a7ad706dd --- src/com/android/providers/calllogbackup/CallLogBackupAgent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/providers/calllogbackup/CallLogBackupAgent.java b/src/com/android/providers/calllogbackup/CallLogBackupAgent.java index 8f211b6..f939d8c 100644 --- a/src/com/android/providers/calllogbackup/CallLogBackupAgent.java +++ b/src/com/android/providers/calllogbackup/CallLogBackupAgent.java @@ -242,7 +242,7 @@ public class CallLogBackupAgent extends BackupAgent { } Calls.addCall(null /* CallerInfo */, this, call.number, call.numberPresentation, call.type, call.features, handle, call.date, (int) call.duration, - dataUsage, true /* addForAllUsers */); + dataUsage, true /* addForAllUsers */, true /* is_read */); } @VisibleForTesting -- cgit v1.2.3