summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorVictor Chang <vichang@google.com>2016-01-11 21:01:12 +0000
committerVictor Chang <vichang@google.com>2016-01-11 21:02:32 +0000
commit74eed5e47a3d4a3670235695e51869764ca046a0 (patch)
tree97ba72d046857f903bf0574f3bbaf971d7cac7b3 /InCallUI
parent45e7d5c95e656953508b567555db464aede3bdb1 (diff)
Allow google dialer code to be compiled against M and N SDKs for enterprise features
Following dialer's practice, use src-N and pre-N to separate implementation in different build sdk BUG=26312016 Change-Id: Ib80a377564ed5a57bcaf2a78ac746ffbeb20bdbd
Diffstat (limited to 'InCallUI')
-rw-r--r--InCallUI/src/com/android/incallui/CallerInfoAsyncQuery.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/InCallUI/src/com/android/incallui/CallerInfoAsyncQuery.java b/InCallUI/src/com/android/incallui/CallerInfoAsyncQuery.java
index 9080484ed..8d45efb97 100644
--- a/InCallUI/src/com/android/incallui/CallerInfoAsyncQuery.java
+++ b/InCallUI/src/com/android/incallui/CallerInfoAsyncQuery.java
@@ -34,6 +34,7 @@ import android.telephony.PhoneNumberUtils;
import android.text.TextUtils;
import com.android.contacts.common.ContactsUtils;
+import com.android.contacts.common.compat.DirectoryCompat;
import com.android.contacts.common.util.TelephonyManagerUtils;
import com.android.dialer.calllog.ContactInfoHelper;
import com.android.dialer.service.CachedNumberLookupService;
@@ -460,9 +461,7 @@ public class CallerInfoAsyncQuery {
int idIndex = cursor.getColumnIndex(Directory._ID);
while (cursor.moveToNext()) {
long id = cursor.getLong(idIndex);
- // TODO(b/26019967): in N SDK, use Directory.isRemoteDirectory
- if (id != Directory.DEFAULT && id != Directory.LOCAL_INVISIBLE && id != 1000000000
- && id != 1000000001) {
+ if (DirectoryCompat.isRemoteDirectory(id)) {
results.add(id);
}
}