Messaging: Remove compatibility for old android versions
Change-Id: Id9065d60525a509271a0e64c0e349e857cb998e2
This commit is contained in:
@@ -519,27 +519,21 @@ public class ContactUtil {
|
||||
* Returns if a given contact id belongs to managed profile.
|
||||
*/
|
||||
public static boolean isEnterpriseContactId(final long contactId) {
|
||||
return OsUtil.isAtLeastL() && ContactsContract.Contacts.isEnterpriseContactId(contactId);
|
||||
return ContactsContract.Contacts.isEnterpriseContactId(contactId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns Email lookup uri that will query both primary and corp profile
|
||||
*/
|
||||
private static Uri getEmailContentLookupUri() {
|
||||
if (OsUtil.isAtLeastM()) {
|
||||
return Email.ENTERPRISE_CONTENT_LOOKUP_URI;
|
||||
}
|
||||
return Email.CONTENT_LOOKUP_URI;
|
||||
return Email.ENTERPRISE_CONTENT_LOOKUP_URI;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns PhoneLookup URI.
|
||||
*/
|
||||
public static Uri getPhoneLookupUri() {
|
||||
if (OsUtil.isAtLeastM()) {
|
||||
return PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI;
|
||||
}
|
||||
return PhoneLookup.CONTENT_FILTER_URI;
|
||||
return PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI;
|
||||
}
|
||||
|
||||
public static boolean hasReadContactsPermission() {
|
||||
|
||||
Reference in New Issue
Block a user