diff options
author | Roshan Pius <rpius@google.com> | 2015-08-04 13:27:39 -0700 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2015-08-04 14:06:32 -0700 |
commit | a172ae826f3e53c637d239a354acd0a0dd9f40be (patch) | |
tree | 04076c3d75b82ebce4f8fc72818c658629a62c8c | |
parent | 5fe9573b5dca5de8d789459eedb1df49497f3ae3 (diff) | |
download | android_packages_providers_CallLogProvider-a172ae826f3e53c637d239a354acd0a0dd9f40be.tar.gz android_packages_providers_CallLogProvider-a172ae826f3e53c637d239a354acd0a0dd9f40be.tar.bz2 android_packages_providers_CallLogProvider-a172ae826f3e53c637d239a354acd0a0dd9f40be.zip |
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
-rw-r--r-- | src/com/android/providers/calllogbackup/CallLogBackupAgent.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 |