1
0
mirror of https://github.com/etesync/android synced 2024-11-16 04:49:06 +00:00

Sort contacts accounts by name and type

This commit is contained in:
Tal Hacohen 2017-04-03 21:40:54 +03:00
parent 1227a66409
commit bee502a440

View File

@ -86,7 +86,8 @@ public class LocalContactImportFragment extends Fragment {
try {
cursor = provider.query(ContactsContract.RawContacts.CONTENT_URI,
new String[]{ContactsContract.RawContacts.ACCOUNT_NAME, ContactsContract.RawContacts.ACCOUNT_TYPE}
, null, null, ContactsContract.RawContacts.ACCOUNT_NAME + " ASC");
, null, null,
ContactsContract.RawContacts.ACCOUNT_NAME + " ASC, " + ContactsContract.RawContacts.ACCOUNT_TYPE);
} catch (Exception except) {
Log.w(TAG, "Calendar provider is missing columns, continuing anyway");