diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2014-04-27 21:59:31 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2014-04-27 21:59:31 +0200 |
commit | f8c2c42fc9b820d8da2130b4d1d5d6820493a671 (patch) | |
tree | 18350fb962cfab95a3cce652a0157fdbe380b3c6 /src/de/danoeh/antennapod/adapter/ActionButtonUtils.java | |
parent | 95c5f0309f4d481350333a3c99666f3eda9f946c (diff) | |
download | AntennaPod-f8c2c42fc9b820d8da2130b4d1d5d6820493a671.zip |
Improved spacing
Diffstat (limited to 'src/de/danoeh/antennapod/adapter/ActionButtonUtils.java')
-rw-r--r-- | src/de/danoeh/antennapod/adapter/ActionButtonUtils.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/de/danoeh/antennapod/adapter/ActionButtonUtils.java b/src/de/danoeh/antennapod/adapter/ActionButtonUtils.java index 78d62a8de..17c61a86c 100644 --- a/src/de/danoeh/antennapod/adapter/ActionButtonUtils.java +++ b/src/de/danoeh/antennapod/adapter/ActionButtonUtils.java @@ -23,7 +23,7 @@ public class ActionButtonUtils { if (context == null) throw new IllegalArgumentException("context = null"); this.context = context; drawables = context.obtainStyledAttributes(new int[]{ - R.attr.av_play, R.attr.navigation_cancel, R.attr.av_download}); + R.attr.av_play, R.attr.navigation_cancel, R.attr.av_download, R.attr.navigation_chapters}); labels = new int[]{R.string.play_label, R.string.cancel_download_label, R.string.download_label}; } @@ -52,8 +52,12 @@ public class ActionButtonUtils { } else { // item is not being downloaded butSecondary.setVisibility(View.VISIBLE); - butSecondary - .setImageDrawable(drawables.getDrawable(0)); + if (media.isPlaying()) { + butSecondary.setImageDrawable(drawables.getDrawable(3)); + } else { + butSecondary + .setImageDrawable(drawables.getDrawable(0)); + } butSecondary.setContentDescription(context.getString(labels[0])); } } else { |