fix empty contact filter

This commit is contained in:
agrajaghh 2014-04-13 15:00:04 +02:00
parent 4d52d2ee36
commit e9a50ce6c3

View File

@ -128,7 +128,7 @@ public class ContactsDatabase {
private Cursor queryAndroidDb(String filter) { private Cursor queryAndroidDb(String filter) {
final Uri baseUri; final Uri baseUri;
if (filter != null) { if (!Util.isEmpty(filter)) {
baseUri = Uri.withAppendedPath(ContactsContract.CommonDataKinds.Phone.CONTENT_FILTER_URI, baseUri = Uri.withAppendedPath(ContactsContract.CommonDataKinds.Phone.CONTENT_FILTER_URI,
Uri.encode(filter)); Uri.encode(filter));
} else { } else {