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 | CallLogProvider-marshmallow-release.tar.gz |
Mark missed calls as read in calllog restore(1/2)android-cts-6.0_r9android-cts-6.0_r8android-cts-6.0_r7android-cts-6.0_r6android-cts-6.0_r5android-cts-6.0_r4android-cts-6.0_r32android-cts-6.0_r31android-cts-6.0_r30android-cts-6.0_r3android-cts-6.0_r29android-cts-6.0_r28android-cts-6.0_r27android-cts-6.0_r26android-cts-6.0_r25android-cts-6.0_r24android-cts-6.0_r23android-cts-6.0_r22android-cts-6.0_r21android-cts-6.0_r20android-cts-6.0_r2android-cts-6.0_r19android-cts-6.0_r18android-cts-6.0_r17android-cts-6.0_r16android-cts-6.0_r15android-cts-6.0_r14android-cts-6.0_r13android-cts-6.0_r12android-cts-6.0_r1android-6.0.0_r7android-6.0.0_r6android-6.0.0_r5android-6.0.0_r4android-6.0.0_r3android-6.0.0_r26android-6.0.0_r25android-6.0.0_r24android-6.0.0_r23android-6.0.0_r2android-6.0.0_r13android-6.0.0_r12android-6.0.0_r11android-6.0.0_r1marshmallow-releasemarshmallow-dr-releasemarshmallow-dr-devmarshmallow-devmarshmallow-cts-release
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 |