summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorVictor Chang <vichang@google.com>2015-12-07 20:20:40 +0000
committerVictor Chang <vichang@google.com>2015-12-08 10:46:56 +0000
commit327a852b26c06c5b2fe4702a5bd5ca140560d3b3 (patch)
treec0b04361233ff2d61699cd4a99c492f2e5b5fefd /InCallUI
parentecc833db402cff9122e28efb54156af165d1e38e (diff)
Use ContactsUtil.FLAG_N_FEATURE in CallerInfoAsyncQuery
BUG=25899500 Change-Id: Ie5bf5c8e593683615cc0300739ad3989e4821ca4
Diffstat (limited to 'InCallUI')
-rw-r--r--InCallUI/src/com/android/incallui/CallerInfoAsyncQuery.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/InCallUI/src/com/android/incallui/CallerInfoAsyncQuery.java b/InCallUI/src/com/android/incallui/CallerInfoAsyncQuery.java
index 97a95ac50..3467684f5 100644
--- a/InCallUI/src/com/android/incallui/CallerInfoAsyncQuery.java
+++ b/InCallUI/src/com/android/incallui/CallerInfoAsyncQuery.java
@@ -33,6 +33,7 @@ import android.provider.ContactsContract.Directory;
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 @@ public class CallerInfoAsyncQuery {
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
@@ -437,9 +436,7 @@ public class CallerInfoAsyncQuery {
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");
}