Skip to content

Commit 0fce15b

Browse files
committed
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
1 parent 0230f20 commit 0fce15b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

core/java/android/provider/CallLog.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,14 @@ public static class Calls implements BaseColumns {
237237
*/
238238
public static final String CACHED_PHOTO_ID = "photo_id";
239239

240+
/**
241+
* The cached formatted phone number.
242+
* This value is not guaranteed to be present.
243+
* <P>Type: TEXT</P>
244+
* @hide
245+
*/
246+
public static final String CACHED_FORMATTED_NUMBER = "formatted_number";
247+
240248
/**
241249
* Adds a call to the call log.
242250
*

0 commit comments

Comments
 (0)