summaryrefslogtreecommitdiff
path: root/tests/src/com/android/dialer/calllog/CallLogQueryTestUtils.java
diff options
context:
space:
mode:
authorBrandon Maxwell <maxwelb@google.com>2016-03-10 19:42:44 -0800
committerBrandon Maxwell <maxwelb@google.com>2016-03-11 13:34:35 -0800
commit17df9323e45ae5984b6df25b788a9cbffb51e8ab (patch)
treee8a24e607b77c1c21283da024859f84d94bd7123 /tests/src/com/android/dialer/calllog/CallLogQueryTestUtils.java
parentebfbfa10d95ef21373cf7c112eac52413b11c525 (diff)
Removing hardcoded database column name
+ We were previously hardcoding the post_dial_digits column name. This code was written before we had src-N and src-pre-N folders. + This CL converts the hard coded column name to follow the pattern we have for new stuff in the SDK. + Additionally, this CL removes an unneeded method which checks the SDK version, instead using the CompatUtils class. Bug: 25021389 Change-Id: I017d47f7efd323254e616a64d7ac824c5cfb8902
Diffstat (limited to 'tests/src/com/android/dialer/calllog/CallLogQueryTestUtils.java')
-rw-r--r--tests/src/com/android/dialer/calllog/CallLogQueryTestUtils.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/src/com/android/dialer/calllog/CallLogQueryTestUtils.java b/tests/src/com/android/dialer/calllog/CallLogQueryTestUtils.java
index 1e4a00000..f1b1a9ab9 100644
--- a/tests/src/com/android/dialer/calllog/CallLogQueryTestUtils.java
+++ b/tests/src/com/android/dialer/calllog/CallLogQueryTestUtils.java
@@ -20,13 +20,15 @@ import static junit.framework.Assert.assertEquals;
import android.provider.CallLog.Calls;
+import com.android.contacts.common.compat.CompatUtils;
+
/**
* Helper class to create test values for {@link CallLogQuery}.
*/
public class CallLogQueryTestUtils {
public static Object[] createTestValues() {
Object[] values;
- if (PhoneNumberDisplayUtil.canShowPostDial()) {
+ if (CompatUtils.isNCompatible()) {
values = new Object[]{
0L, "", 0L, 0L, Calls.INCOMING_TYPE, "", "", "", null, 0, null, null, null,
null, 0L, null, 0, Calls.PRESENTATION_ALLOWED, null, null, 0, null, null,