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:
parent
1227a66409
commit
bee502a440
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user