History log of /packages/providers/ContactsProvider/src/com/android/providers/contacts/PhoneLookupWithStarPrefix.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4abe55a6883557aa2e5e87433bb17341430f3fca 01-Dec-2015 Jay Shrauner <shrauner@google.com> Fix NPE in matchingNumberStartsWithStar

Check for null phoneNumber before dereferencing.

Bug:25941069
Change-Id: Ic30eeeac7e954db1898d05193a11f09d8595cad9
/packages/providers/ContactsProvider/src/com/android/providers/contacts/PhoneLookupWithStarPrefix.java
bf98e55afd5f39f72dc05c704409655b89a7fa25 27-Feb-2014 Brian Attwell <brianattwell@google.com> Do not ignore leading "*"s in phone lookups

After a phone lookup, "remove" entries from the cursor that
don't match the queried number w.r.t. to whether it has a leading
"*". "Removing" entries from a cursor involves making a partial
copy of the cursor.

This CL affects as little functionality as possible, so that it
can make it into MR2. Ie, we continue to ignore leading "*"s
in other CP2 queries.

MANUAL TESTS:
-Add a "*123" Emergency contact and "123" Voicemail contact
-Call "*123", then call "123". You should see two seperate
entries in your call log. In addition, the incall screens
should show Emergency and Voicemail respectively (although
the "123" call doesn't work properly inside the incall
UI right now. This is a seperate bug b/13195342).

Bug: 13195334
Change-Id: I7e1938ccb085630072611eb63148c5714b62fee8
/packages/providers/ContactsProvider/src/com/android/providers/contacts/PhoneLookupWithStarPrefix.java