aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-11-08 18:43:01 -0800
committerScott Jackson <daneren2005@gmail.com>2013-11-08 18:43:01 -0800
commit9aed91fe7633857c29a600d3dc3c2b4c02affcd9 (patch)
tree87c5cc0494e8edbc41f067505d32a67c6d196166 /src
parent506f620f11708d36d89867e43156b4c42dfdcc03 (diff)
downloaddsub-9aed91fe7633857c29a600d3dc3c2b4c02affcd9.tar.gz
dsub-9aed91fe7633857c29a600d3dc3c2b4c02affcd9.tar.bz2
dsub-9aed91fe7633857c29a600d3dc3c2b4c02affcd9.zip
More updates to icons for different themes/dpi
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java3
-rw-r--r--src/github/daneren2005/dsub/view/SongView.java4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java b/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java
index 5b3733da..4df064e5 100644
--- a/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java
+++ b/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java
@@ -356,8 +356,7 @@ public class SubsonicFragmentActivity extends SubsonicActivity {
getImageLoader().loadImage(coverArtView, song, false, false);
int[] attrs = new int[] {(getDownloadService().getPlayerState() == PlayerState.STARTED) ? R.attr.media_button_pause : R.attr.media_button_start};
TypedArray typedArray = this.obtainStyledAttributes(attrs);
- Drawable drawable = typedArray.getDrawable(0);
- startButton.setImageDrawable(drawable);
+ startButton.setImageResource(typedArray.getResourceId(0, 0));
typedArray.recycle();
}
diff --git a/src/github/daneren2005/dsub/view/SongView.java b/src/github/daneren2005/dsub/view/SongView.java
index 24e2df0f..ea1f63c5 100644
--- a/src/github/daneren2005/dsub/view/SongView.java
+++ b/src/github/daneren2005/dsub/view/SongView.java
@@ -223,7 +223,9 @@ public class SongView extends UpdateView implements Checkable {
if (playing) {
if(!this.playing) {
this.playing = playing;
- titleTextView.setCompoundDrawablesWithIntrinsicBounds(R.drawable.now_playing, 0, 0, 0);
+ int[] attrs = new int[] {R.attr.media_button_start};
+ TypedArray typedArray = context.obtainStyledAttributes(attrs);
+ titleTextView.setCompoundDrawablesWithIntrinsicBounds(typedArray.getResourceId(0, 0), 0, 0, 0);
}
} else {
if(this.playing) {