Uri encode phone number before passing it to query.

Fixes bug 2122926
This commit is contained in:
Megha Joshi
2009-09-20 23:48:02 -07:00
parent 0647b580aa
commit 2acda4bead

View File

@@ -402,7 +402,7 @@ public class ContactHeaderWidget extends FrameLayout implements View.OnClickList
*/
public void bindFromPhoneNumber(String number) {
mQueryHandler.startQuery(TOKEN_PHONE_LOOKUP, number,
Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, number),
Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode(number)),
PHONE_LOOKUP_PROJECTION, null, null, null);
}