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

Commit 0286a944 authored by Victor Chang's avatar Victor Chang
Browse files

Remove the work badge icon when a contact in search bar is a Google caller id

BUG=26680007

Change-Id: Ieefff429e34d11430cbb5926d3a4285d35b91820
parent 78432961
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) {