summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Chang <vichang@google.com>2015-12-09 11:08:06 +0000
committerandroid-build-merger <android-build-merger@google.com>2015-12-09 11:08:06 +0000
commit0b687c08d7f9a5fb0d00fea0cf9d6c8cf5bdaef8 (patch)
tree231c5556a1165e257be7987325b406a9f14158ce
parent511b6638fa5e5da33d74027429deb1d81a7e902f (diff)
parentaccf2d994f505dbeda1fe4a33b90a53cafda34e4 (diff)
Merge "Use ContactsUtil.FLAG_N_FEATURE in CallerInfoAsyncQuery" into ub-contactsdialer-b-dev
am: f7f4725faf * commit 'f7f4725fafed10fe2d06328e17433a7d15716976': Use ContactsUtil.FLAG_N_FEATURE in CallerInfoAsyncQuery
-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");
}