summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Chang <vichang@google.com>2015-12-08 21:41:43 +0000
committerandroid-build-merger <android-build-merger@google.com>2015-12-08 21:41:43 +0000
commitd912e40f72699698b7d2b34a77abe86940f8318a (patch)
treef77403f0a8710f8d3f99a5c27475b97452d92d45
parent1a5d1875f8caf581fbee621246b36825a114b670 (diff)
parentdad42273d7fc26d2be5215da42473b624271d7ad (diff)
Merge "Use ContactsUtil.FLAG_N_FEATURE in ContactInfoHelper" into ub-contactsdialer-b-dev
am: dad42273d7 * commit 'dad42273d7fc26d2be5215da42473b624271d7ad': Use ContactsUtil.FLAG_N_FEATURE in ContactInfoHelper
-rw-r--r--src/com/android/dialer/calllog/ContactInfoHelper.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/com/android/dialer/calllog/ContactInfoHelper.java b/src/com/android/dialer/calllog/ContactInfoHelper.java
index b6fc7e29b..2ecb1e8c0 100644
--- a/src/com/android/dialer/calllog/ContactInfoHelper.java
+++ b/src/com/android/dialer/calllog/ContactInfoHelper.java
@@ -30,6 +30,7 @@ import android.telephony.PhoneNumberUtils;
import android.text.TextUtils;
import android.util.Log;
+import com.android.contacts.common.ContactsUtils;
import com.android.contacts.common.util.Constants;
import com.android.contacts.common.util.PermissionsUtil;
import com.android.contacts.common.util.PhoneNumberHelper;
@@ -49,11 +50,6 @@ import org.json.JSONObject;
public class ContactInfoHelper {
private static final String TAG = ContactInfoHelper.class.getSimpleName();
- private static final boolean FLAG_PRE_N_FEATURE =
- true // Enforce Pre-N (M) behavior in release build
- || Build.VERSION.SDK_INT <= Build.VERSION_CODES.M
- || !Build.VERSION.CODENAME.startsWith("N");
-
private final Context mContext;
private final String mCurrentCountryIso;
@@ -401,7 +397,7 @@ public class ContactInfoHelper {
// Get URI for the number in the PhoneLookup table, with a parameter to indicate whether
// the number is a SIP number.
Uri uri = PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI;
- if (FLAG_PRE_N_FEATURE) {
+ if (!ContactsUtils.FLAG_N_FEATURE) {
if (directoryId != -1) {
// ENTERPRISE_CONTENT_FILTER_URI in M doesn't support directory lookup
uri = PhoneLookup.CONTENT_FILTER_URI;