summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWenyi Wang <wenyiw@google.com>2015-12-29 20:06:24 +0000
committerandroid-build-merger <android-build-merger@google.com>2015-12-29 20:06:24 +0000
commitdade707215f4a2ab78b6b0799fbe31e95261be07 (patch)
tree884f4646e3769f0ff0214d4f39563fc797146314
parentfd04341522950f98d9bb44f6db334dce71f07c8d (diff)
parentae671bb858074d4dcf237ce3cc652374fed9c416 (diff)
downloadpackages_apps_PhoneCommon-dade707215f4a2ab78b6b0799fbe31e95261be07.tar.gz
packages_apps_PhoneCommon-dade707215f4a2ab78b6b0799fbe31e95261be07.tar.bz2
packages_apps_PhoneCommon-dade707215f4a2ab78b6b0799fbe31e95261be07.zip
Avoid importing Contacts
am: ae671bb858 * commit 'ae671bb858074d4dcf237ce3cc652374fed9c416': Avoid importing Contacts
-rw-r--r--src/com/android/phone/common/compat/PathInterpolatorCompat.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/phone/common/compat/PathInterpolatorCompat.java b/src/com/android/phone/common/compat/PathInterpolatorCompat.java
index 7697bf3..d6f075c 100644
--- a/src/com/android/phone/common/compat/PathInterpolatorCompat.java
+++ b/src/com/android/phone/common/compat/PathInterpolatorCompat.java
@@ -18,15 +18,14 @@ package com.android.phone.common.compat;
import android.graphics.Path;
import android.graphics.PathMeasure;
+import android.os.Build;
import android.view.animation.Interpolator;
import android.view.animation.PathInterpolator;
-import com.android.contacts.common.compat.CompatUtils;
-
public class PathInterpolatorCompat {
public static Interpolator create(float controlX1, float controlY1,
float controlX2, float controlY2) {
- if (CompatUtils.isLollipopCompatible()) {
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
return new PathInterpolator(controlX1, controlY1, controlX2, controlY2);
}
return new PathInterpolatorBase(controlX1, controlY1, controlX2, controlY2);