diff options
author | Daniel Lehmann <lehmannd@google.com> | 2012-02-07 13:55:44 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-02-07 13:55:44 -0800 |
commit | 85ff6534e410880d51b30a3ce362c0d3798375ca (patch) | |
tree | 2150a5bb5f6b061dbd8230f286aaba94efd614e6 /src | |
parent | 5f673b204620c4c241b3b39c6ac0ee063d22f13b (diff) | |
parent | cde9e5e83f7c3a6bf341f9f2fa2359a1ed127f95 (diff) | |
download | packages_providers_ContactsProvider-85ff6534e410880d51b30a3ce362c0d3798375ca.zip packages_providers_ContactsProvider-85ff6534e410880d51b30a3ce362c0d3798375ca.tar.gz packages_providers_ContactsProvider-85ff6534e410880d51b30a3ce362c0d3798375ca.tar.bz2 |
Merge "Fix broken sub-QueryBuilder. Instead of selecting only photos, this selected all kinds of data rows :-("
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/providers/contacts/ContactsProvider2.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/providers/contacts/ContactsProvider2.java b/src/com/android/providers/contacts/ContactsProvider2.java index eadccb8..493b77c 100644 --- a/src/com/android/providers/contacts/ContactsProvider2.java +++ b/src/com/android/providers/contacts/ContactsProvider2.java @@ -4879,7 +4879,7 @@ public class ContactsProvider2 extends AbstractContactsProvider SQLiteQueryBuilder lookupQb = new SQLiteQueryBuilder(); setTablesAndProjectionMapForData(lookupQb, uri, projection, false); if (match == CONTACTS_LOOKUP_PHOTO || match == CONTACTS_LOOKUP_ID_PHOTO) { - qb.appendWhere(" AND " + Data._ID + "=" + Contacts.PHOTO_ID); + lookupQb.appendWhere(" AND " + Data._ID + "=" + Contacts.PHOTO_ID); } lookupQb.appendWhere(" AND "); Cursor c = queryWithContactIdAndLookupKey(lookupQb, mActiveDb.get(), uri, |