From 0fce15b03c06cf3ece42a1ec636349f525f16ea1 Mon Sep 17 00:00:00 2001 From: Flavio Lerda Date: Sat, 1 Oct 2011 18:55:33 +0100 Subject: [PATCH] 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 --- core/java/android/provider/CallLog.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/java/android/provider/CallLog.java b/core/java/android/provider/CallLog.java index 886edaf9f46b4..6d14dfc7ad4ab 100644 --- a/core/java/android/provider/CallLog.java +++ b/core/java/android/provider/CallLog.java @@ -237,6 +237,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. + *

Type: TEXT

+ * @hide + */ + public static final String CACHED_FORMATTED_NUMBER = "formatted_number"; + /** * Adds a call to the call log. *