- final List<String> matches = AccountDAO.unbox((profileId == 0) ? dao.lookupByNameSync(
- String.valueOf(constraint)
- .toUpperCase()) : dao.lookupInProfileByNameSync(profileId,
- String.valueOf(constraint)
- .toUpperCase()));
+ final List<String> matches = AccountDAO.unbox(
+ (profileId == NO_PROFILE_ID) ? dao.lookupNamesByNameSync(
+ String.valueOf(constraint)
+ .toUpperCase()) : dao.lookupNamesInProfileByNameSync(profileId,
+ String.valueOf(constraint)
+ .toUpperCase()));