summaryrefslogtreecommitdiffstats
path: root/src/com/android/contacts/common/ContactsUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/contacts/common/ContactsUtils.java')
-rw-r--r--src/com/android/contacts/common/ContactsUtils.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/contacts/common/ContactsUtils.java b/src/com/android/contacts/common/ContactsUtils.java
index d05902dc..c3531b10 100644
--- a/src/com/android/contacts/common/ContactsUtils.java
+++ b/src/com/android/contacts/common/ContactsUtils.java
@@ -23,6 +23,7 @@ import android.net.Uri;
import android.os.Build;
import android.provider.ContactsContract.CommonDataKinds.Im;
import android.support.annotation.IntDef;
+import android.support.v4.os.BuildCompat;
import android.provider.ContactsContract.DisplayPhoto;
import android.telephony.PhoneNumberUtils;
import android.text.TextUtils;
@@ -52,9 +53,7 @@ public class ContactsUtils {
private static int sThumbnailSize = -1;
- public static final boolean FLAG_N_FEATURE = SdkSelectionUtils.TARGET_N_SDK // build-time flag
- && (Build.VERSION.SDK_INT > Build.VERSION_CODES.M // runtime flag
- || Build.VERSION.CODENAME.startsWith("N")); // TODO: remove startsWith("N")
+ public static final boolean FLAG_N_FEATURE = BuildCompat.isAtLeastN();
// TODO find a proper place for the canonical version of these
public interface ProviderNames {