Merge pull request #1354 from agrajaghh/fix_empty_contact_filter
Fix empty contact filter not working properly
This commit is contained in:
commit
7a54f33f68
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue