aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-08-09 20:49:12 -0700
committerScott Jackson <daneren2005@gmail.com>2015-08-09 20:49:12 -0700
commit011fdc8967cf7f6118f28b1371a19b23fc198fd0 (patch)
treeb12c3d29835be66d55d0f3bfc6859180392ff801 /app/src
parenta2c85127296fbe67510c025162547699c812cf25 (diff)
downloaddsub-011fdc8967cf7f6118f28b1371a19b23fc198fd0.tar.gz
dsub-011fdc8967cf7f6118f28b1371a19b23fc198fd0.tar.bz2
dsub-011fdc8967cf7f6118f28b1371a19b23fc198fd0.zip
Fix landscape star
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java b/app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java
index bc645e0c..ffd711d1 100644
--- a/app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java
+++ b/app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java
@@ -235,7 +235,11 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis
if(currentSong.isStarred()) {
starButton.setImageDrawable(DrawableTint.getTintedDrawable(context, R.drawable.ic_toggle_star));
} else {
- starButton.setImageResource(R.drawable.ic_toggle_star_outline_dark);
+ if(getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {
+ starButton.setImageResource(DrawableTint.getDrawableRes(context, R.attr.star_outline));
+ } else {
+ starButton.setImageResource(R.drawable.ic_toggle_star_outline_dark);
+ }
}
}
});
@@ -1259,7 +1263,11 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis
if(song.isStarred()) {
starButton.setImageDrawable(DrawableTint.getTintedDrawable(context, R.drawable.ic_toggle_star));
} else {
- starButton.setImageResource(R.drawable.ic_toggle_star_outline_dark);
+ if(getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {
+ starButton.setImageResource(DrawableTint.getDrawableRes(context, R.attr.star_outline));
+ } else {
+ starButton.setImageResource(R.drawable.ic_toggle_star_outline_dark);
+ }
}
setSubtitle(context.getResources().getString(R.string.download_playing_out_of, currentPlayingIndex + 1, currentPlayingSize));