summaryrefslogtreecommitdiff
path: root/src-N/com/android/dialer/compat
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 /src-N/com/android/dialer/compat
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 'src-N/com/android/dialer/compat')
-rw-r--r--src-N/com/android/dialer/compat/CallsSdkCompat.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src-N/com/android/dialer/compat/CallsSdkCompat.java b/src-N/com/android/dialer/compat/CallsSdkCompat.java
new file mode 100644
index 000000000..3d72e356e
--- /dev/null
+++ b/src-N/com/android/dialer/compat/CallsSdkCompat.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2016 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.android.dialer.compat;
+
+import android.provider.CallLog;
+
+public class CallsSdkCompat {
+
+ public static final String POST_DIAL_DIGITS = CallLog.Calls.POST_DIAL_DIGITS;
+}