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

Commit fccb003c authored by Victor Chang's avatar Victor Chang Committed by android-build-merger
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 am: 20e88184f4
am: 8299734ae8

* commit '8299734ae8d211d2eb01822ba3b95af38f428809':
  Remove the work badge icon when a contact in search bar is a Google caller id
parents 775bd885 71ff7c70
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) {