Avoid importing Contacts
PhoneCommon is built as part of Telephony in master and Telephony doesn't
include Contacts, so we use android.os.Build to check SDK version.
Change-Id: Id4a6fcc5f6bf942bcf6ca4554f989ec43adfe4d0
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 @@
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);