From 4efaf4ba84187a9e25c081a2d1c0d409cbd94911 Mon Sep 17 00:00:00 2001 From: Debashish Chatterjee Date: Thu, 11 Aug 2011 16:47:16 +0100 Subject: Set "is_read" = 0 for missed calls. This is needed for an upcoming change in call log that will show only unread calls in the "new" section. The field "new" will henceforth only be used for notification. Bug: 5141185 Change-Id: Id24f815994ce90c89f5907c919ce95043a5d6217 --- core/java/android/provider/CallLog.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/java/android/provider/CallLog.java') diff --git a/core/java/android/provider/CallLog.java b/core/java/android/provider/CallLog.java index 9c6f5c9..c5a924b 100644 --- a/core/java/android/provider/CallLog.java +++ b/core/java/android/provider/CallLog.java @@ -241,6 +241,9 @@ public class CallLog { values.put(DATE, Long.valueOf(start)); values.put(DURATION, Long.valueOf(duration)); values.put(NEW, Integer.valueOf(1)); + if (callType == MISSED_TYPE) { + values.put(IS_READ, Integer.valueOf(0)); + } if (ci != null) { values.put(CACHED_NAME, ci.name); values.put(CACHED_NUMBER_TYPE, ci.numberType); -- cgit v1.1