aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-08-26 09:03:15 -0700
committerScott Jackson <daneren2005@gmail.com>2015-08-26 09:03:15 -0700
commita83d2932128d5ead3c9a4fd36d42f4c8c152fd10 (patch)
tree33643d36ef5326c705a3dc4976249bfcd8396bed /app
parentbd331bbaf5c2374ce34f23a3c5f589e7dfeaf41c (diff)
downloaddsub-a83d2932128d5ead3c9a4fd36d42f4c8c152fd10.tar.gz
dsub-a83d2932128d5ead3c9a4fd36d42f4c8c152fd10.tar.bz2
dsub-a83d2932128d5ead3c9a4fd36d42f4c8c152fd10.zip
All getResources() needs to use context
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java4
1 files changed, 2 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 c58a2ecb..8af8a26b 100644
--- a/app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java
+++ b/app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java
@@ -238,7 +238,7 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis
if(currentSong.isStarred()) {
starButton.setImageDrawable(DrawableTint.getTintedDrawable(context, R.drawable.ic_toggle_star));
} else {
- if(getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {
+ if(context.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);
@@ -1266,7 +1266,7 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis
if(song.isStarred()) {
starButton.setImageDrawable(DrawableTint.getTintedDrawable(context, R.drawable.ic_toggle_star));
} else {
- if(getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {
+ if(context.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);