From 1b69bcb501568081eab31b4b54e93cea2673ee32 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Wed, 2 Sep 2015 17:26:33 -0700 Subject: Use larger media icons to remove fuzziness --- app/src/main/java/github/daneren2005/dsub/view/SongView.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'app/src/main/java/github/daneren2005/dsub/view/SongView.java') diff --git a/app/src/main/java/github/daneren2005/dsub/view/SongView.java b/app/src/main/java/github/daneren2005/dsub/view/SongView.java index b9c5fa50..dda86162 100644 --- a/app/src/main/java/github/daneren2005/dsub/view/SongView.java +++ b/app/src/main/java/github/daneren2005/dsub/view/SongView.java @@ -19,7 +19,6 @@ package github.daneren2005.dsub.view; import android.content.Context; -import android.content.res.TypedArray; import android.graphics.Color; import android.view.LayoutInflater; import android.view.View; @@ -216,10 +215,7 @@ public class SongView extends UpdateView2 { this.moreImage = moreImage; } } else if(this.moreImage != R.drawable.download_none_light) { - int[] attrs = new int[] {R.attr.download_none}; - TypedArray typedArray = context.obtainStyledAttributes(attrs); - moreButton.setImageResource(typedArray.getResourceId(0, 0)); - typedArray.recycle(); + moreButton.setImageResource(DrawableTint.getDrawableRes(context, R.attr.download_none)); this.moreImage = R.drawable.download_none_light; } @@ -241,9 +237,7 @@ public class SongView extends UpdateView2 { if (playing) { if(!this.playing) { this.playing = playing; - int[] attrs = new int[] {R.attr.media_button_start}; - TypedArray typedArray = context.obtainStyledAttributes(attrs); - titleTextView.setCompoundDrawablesWithIntrinsicBounds(typedArray.getResourceId(0, 0), 0, 0, 0); + titleTextView.setCompoundDrawablesWithIntrinsicBounds(DrawableTint.getDrawableRes(context, R.attr.playing), 0, 0, 0); } } else { if(this.playing) { -- cgit v1.2.3