diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-08-09 20:49:12 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-08-09 20:49:12 -0700 |
commit | 011fdc8967cf7f6118f28b1371a19b23fc198fd0 (patch) | |
tree | b12c3d29835be66d55d0f3bfc6859180392ff801 /app/src/main | |
parent | a2c85127296fbe67510c025162547699c812cf25 (diff) | |
download | dsub-011fdc8967cf7f6118f28b1371a19b23fc198fd0.tar.gz dsub-011fdc8967cf7f6118f28b1371a19b23fc198fd0.tar.bz2 dsub-011fdc8967cf7f6118f28b1371a19b23fc198fd0.zip |
Fix landscape star
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java | 12 |
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)); |