mirror of
https://github.com/etesync/android
synced 2025-02-09 06:02:42 +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 {
|
try {
|
||||||
cursor = provider.query(ContactsContract.RawContacts.CONTENT_URI,
|
cursor = provider.query(ContactsContract.RawContacts.CONTENT_URI,
|
||||||
new String[]{ContactsContract.RawContacts.ACCOUNT_NAME, ContactsContract.RawContacts.ACCOUNT_TYPE}
|
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) {
|
} catch (Exception except) {
|
||||||
Log.w(TAG, "Calendar provider is missing columns, continuing anyway");
|
Log.w(TAG, "Calendar provider is missing columns, continuing anyway");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user