summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Flavio Lerda <flerda@google.com> 2011-10-01 18:55:33 +0100
committer Flavio Lerda <flerda@google.com> 2011-10-01 18:55:33 +0100
commit0fce15b03c06cf3ece42a1ec636349f525f16ea1 (patch)
tree304f23550cb848c91b6e79c04e043da1e59591f0
parent0230f20cfa5ce55d422178989d723a7505179721 (diff)
Add a cached formatted phone number to call log.
This column is used by the phone application to cache the formatted phone number. This is needed to avoid computing the formatted phone number in the main thread (because it requires disk access) but not update the formatted phone number after the UI has been shown (except the first time around or if anything else has changed). Bug: 5316982 Change-Id: I4e2dd2e3fb35a0e0d15039e4c0c9841a909f7a8a
-rw-r--r--core/java/android/provider/CallLog.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/provider/CallLog.java b/core/java/android/provider/CallLog.java
index 886edaf9f46b..6d14dfc7ad4a 100644
--- a/core/java/android/provider/CallLog.java
+++ b/core/java/android/provider/CallLog.java
@@ -238,6 +238,14 @@ public class CallLog {
public static final String CACHED_PHOTO_ID = "photo_id";
/**
+ * The cached formatted phone number.
+ * This value is not guaranteed to be present.
+ * <P>Type: TEXT</P>
+ * @hide
+ */
+ public static final String CACHED_FORMATTED_NUMBER = "formatted_number";
+
+ /**
* Adds a call to the call log.
*
* @param ci the CallerInfo object to get the target contact from. Can be null