diff --git a/app/src/main/java/net/nullsum/audinaut/view/AutoRepeatButton.java b/app/src/main/java/net/nullsum/audinaut/view/AutoRepeatButton.java index ef8109c..66f93be 100644 --- a/app/src/main/java/net/nullsum/audinaut/view/AutoRepeatButton.java +++ b/app/src/main/java/net/nullsum/audinaut/view/AutoRepeatButton.java @@ -1,12 +1,12 @@ package net.nullsum.audinaut.view; import android.content.Context; +import android.support.v7.widget.AppCompatImageButton; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.View; -import android.widget.ImageButton; -public class AutoRepeatButton extends ImageButton { +public class AutoRepeatButton extends AppCompatImageButton { private static final long initialRepeatDelay = 1000; private static final long repeatIntervalInMilliseconds = 300; diff --git a/app/src/main/java/net/nullsum/audinaut/view/RecyclingImageView.java b/app/src/main/java/net/nullsum/audinaut/view/RecyclingImageView.java index 0b08275..db8aed6 100644 --- a/app/src/main/java/net/nullsum/audinaut/view/RecyclingImageView.java +++ b/app/src/main/java/net/nullsum/audinaut/view/RecyclingImageView.java @@ -23,10 +23,10 @@ import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.graphics.drawable.TransitionDrawable; import android.os.Build; +import android.support.v7.widget.AppCompatImageView; import android.util.AttributeSet; -import android.widget.ImageView; -public class RecyclingImageView extends ImageView { +public class RecyclingImageView extends AppCompatImageView { private boolean invalidated = false; private OnInvalidated onInvalidated; @@ -42,11 +42,6 @@ public class RecyclingImageView extends ImageView { super(context, attrs, defStyleAttr); } - @TargetApi(Build.VERSION_CODES.LOLLIPOP) - public RecyclingImageView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { - super(context, attrs, defStyleAttr, defStyleRes); - } - @Override public void onDraw(Canvas canvas) { Drawable drawable = this.getDrawable();