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

Commit 71ff7c70 authored by Victor Chang's avatar Victor Chang Committed by Android (Google) Code Review
Browse files

Merge "Remove the work badge icon when a contact in search bar is a Google...

Merge "Remove the work badge icon when a contact in search bar is a Google caller id" into ub-contactsdialer-b-dev
parents 09792f62 0286a944
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -500,7 +500,11 @@ public class PhoneNumberListAdapter extends ContactEntryListAdapter {
        final DirectoryPartition directory = (DirectoryPartition) getPartition(partition);
        final long directoryId = directory.getDirectoryId();
        final long userType = ContactsUtils.determineUserType(directoryId, null);
        view.setWorkProfileIconEnabled(userType == ContactsUtils.USER_TYPE_WORK);
        // Work directory must not be a extended directory. An extended directory is custom
        // directory in the app, but not a directory provided by framework. So it can't be
        // USER_TYPE_WORK.
        view.setWorkProfileIconEnabled(
                !isExtendedDirectory(directoryId) && userType == ContactsUtils.USER_TYPE_WORK);
    }

    protected void bindPhoto(final ContactListItemView view, int partitionIndex, Cursor cursor) {