diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-01-11 23:52:26 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-01-11 23:52:26 +0000 |
commit | 58bade2ace277dff4db3bbbfa2e07015f0f7c6ad (patch) | |
tree | 88259dfd2edf1eefdbb367cd93bc7dfd6a7db548 /java/com/android/dialer/phonelookup/database/contract/PhoneLookupHistoryContract.java | |
parent | 85dcd85f0c90d3a7ff45dcbc8f18c1b0da1ebc65 (diff) | |
parent | 4ee24a9492c7c83952f59ecc54071c31aa68fa86 (diff) |
Merge "Fixed bug in handling of empty numbers in new call log."
Diffstat (limited to 'java/com/android/dialer/phonelookup/database/contract/PhoneLookupHistoryContract.java')
-rw-r--r-- | java/com/android/dialer/phonelookup/database/contract/PhoneLookupHistoryContract.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/java/com/android/dialer/phonelookup/database/contract/PhoneLookupHistoryContract.java b/java/com/android/dialer/phonelookup/database/contract/PhoneLookupHistoryContract.java index f8e108496..a195926ac 100644 --- a/java/com/android/dialer/phonelookup/database/contract/PhoneLookupHistoryContract.java +++ b/java/com/android/dialer/phonelookup/database/contract/PhoneLookupHistoryContract.java @@ -30,10 +30,20 @@ public class PhoneLookupHistoryContract { public static final String TABLE = "PhoneLookupHistory"; + public static final String NUMBER_QUERY_PARAM = "number"; + /** The content URI for this table. */ public static final Uri CONTENT_URI = Uri.withAppendedPath(PhoneLookupHistoryContract.CONTENT_URI, TABLE); + /** Returns a URI for a specific normalized number */ + public static Uri contentUriForNumber(String normalizedNumber) { + return CONTENT_URI + .buildUpon() + .appendQueryParameter(NUMBER_QUERY_PARAM, Uri.encode(normalizedNumber)) + .build(); + } + /** The MIME type of a {@link android.content.ContentProvider#getType(Uri)} single entry. */ public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/phone_lookup_history"; |