Merge "Fix for Google Caller ID not working" into ub-contactsdialer-b-dev
diff --git a/InCallUI/src/com/android/incallui/CallerInfoAsyncQuery.java b/InCallUI/src/com/android/incallui/CallerInfoAsyncQuery.java
index 1a0cd96..bf254c6 100644
--- a/InCallUI/src/com/android/incallui/CallerInfoAsyncQuery.java
+++ b/InCallUI/src/com/android/incallui/CallerInfoAsyncQuery.java
@@ -33,6 +33,7 @@
 import android.telephony.PhoneNumberUtils;
 import android.text.TextUtils;
 
+import com.android.contacts.common.ContactsUtils;
 import com.android.contacts.common.util.TelephonyManagerUtils;
 import com.android.dialer.calllog.ContactInfoHelper;
 
@@ -55,8 +56,6 @@
     private static final int EVENT_EMERGENCY_NUMBER = 4;
     private static final int EVENT_VOICEMAIL_NUMBER = 5;
 
-    private static final boolean FLAG_N_FEATURE = false;
-
     private CallerInfoAsyncQueryHandler mHandler;
 
     // If the CallerInfo query finds no contacts, should we use the
@@ -440,9 +439,7 @@
         ArrayList<Long> results = new ArrayList<>();
 
         Uri uri = Directory.CONTENT_URI;
-        // TODO(b/26019967):
-        // replace VERSION.CODENAME.startsWith("N") by VERSION.SDK_INT >= VERSION_CODES.NYC
-        if (FLAG_N_FEATURE && Build.VERSION.CODENAME.startsWith("N")) {
+        if (ContactsUtils.FLAG_N_FEATURE) {
             uri = Uri.withAppendedPath(ContactsContract.AUTHORITY_URI, "directories_enterprise");
         }