OSDN Git Service

Mark missed calls as read in calllog restore(2/2)
authorRoshan Pius <rpius@google.com>
Tue, 4 Aug 2015 20:23:03 +0000 (13:23 -0700)
committerRoshan Pius <rpius@google.com>
Tue, 4 Aug 2015 21:10:49 +0000 (14:10 -0700)
commit78b8d4aa99ce866caacf291a446837416fa07bd7
tree1d6ebc41a32f657259f8138bd8c04f4d7db458c8
parentfc5a4bf0e1520bf3acd75226d760b8e1d7cdd59f
Mark missed calls as read in calllog restore(2/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: Iee3bea09fbdefef09c7eb6c6c61728cb4d94d9e7
core/java/android/provider/CallLog.java