Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed454bbb authored by Walter Jang's avatar Walter Jang
Browse files

Add group members list activity name index

Bug 18641067

Change-Id: I0f0cdfd2e10b2142a8fa7952f0d2a20894199a95
parent c9abc599
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -69,6 +69,7 @@ public class GroupMembersListAdapter extends ContactEntryListAdapter {
    public GroupMembersListAdapter(Context context) {
        super(context);
        mUnknownNameText = context.getText(android.R.string.unknownName);
        setIndexedPartition(0);
    }

    /** Sets the ID of the group whose members will be displayed. */
@@ -89,6 +90,8 @@ public class GroupMembersListAdapter extends ContactEntryListAdapter {
        loader.setUri(Data.CONTENT_URI.buildUpon()
                .appendQueryParameter(ContactsContract.DIRECTORY_PARAM_KEY,
                        String.valueOf(Directory.DEFAULT))
                .appendQueryParameter(Contacts.EXTRA_ADDRESS_BOOK_INDEX, "true")
                .appendQueryParameter(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS, "true")
                .build());

        loader.setSelection(Data.MIMETYPE + "=?" + " AND " + GroupMembership.GROUP_ROW_ID + "=?");
@@ -105,8 +108,7 @@ public class GroupMembersListAdapter extends ContactEntryListAdapter {

        loader.setSortOrder(
                getSortOrder() == ContactsPreferences.SORT_ORDER_PRIMARY
                        ? Data.DISPLAY_NAME_PRIMARY
                        : Data.DISPLAY_NAME_ALTERNATIVE);
                        ? Contacts.SORT_KEY_PRIMARY : Contacts.SORT_KEY_ALTERNATIVE);
    }

    @Override