mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 08:39:22 +01:00
group and contact list fixes
1) Updating a group without changing the avatar will keep that avatar 2) Prohibit adding non-push users to an existing push group 3) Add Android contacts to the same database. Takes a small amount more time and memory, but allows queries to not be a hack, and enables us to dedupe numbers in JB and higher devices. // FREEBIE
This commit is contained in:
committed by
Moxie Marlinspike
parent
b715debefc
commit
e2f7c1529a
@@ -82,8 +82,12 @@ public class ContactAccessor {
|
||||
null, null, null, ContactsContract.Groups.TITLE + " ASC");
|
||||
}
|
||||
|
||||
public Loader<Cursor> getCursorLoaderForContacts(Context context) {
|
||||
return new ContactsCursorLoader(context);
|
||||
public Loader<Cursor> getCursorLoaderForContacts(Context context, String filter) {
|
||||
return new ContactsCursorLoader(context, filter, false);
|
||||
}
|
||||
|
||||
public Loader<Cursor> getCursorLoaderForPushContacts(Context context, String filter) {
|
||||
return new ContactsCursorLoader(context, filter, true);
|
||||
}
|
||||
|
||||
public Cursor getCursorForContactsWithNumbers(Context context) {
|
||||
|
||||
Reference in New Issue
Block a user