aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-09-17 13:15:12 -0700
committerScott Jackson <daneren2005@gmail.com>2014-09-17 13:15:12 -0700
commit1557ddad4cede328a59b4094884052231ba111b9 (patch)
tree1bc406423adc159b1d0e86d92681fc9499451474
parentff5565b7d2580a999a89e4700bbd7af45d691ef4 (diff)
downloaddsub-1557ddad4cede328a59b4094884052231ba111b9.tar.gz
dsub-1557ddad4cede328a59b4094884052231ba111b9.tar.bz2
dsub-1557ddad4cede328a59b4094884052231ba111b9.zip
Fix crash by using context's getResources
-rw-r--r--src/github/daneren2005/dsub/fragments/SubsonicFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
index 556e4332..cf6f78b0 100644
--- a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
@@ -1594,7 +1594,7 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR
@Override
protected void done(Void result) {
- Util.toast(context, getResources().getString(rating > 0 ? R.string.rating_set_rating : R.string.rating_remove_rating, entry.getTitle()));
+ Util.toast(context, context.getResources().getString(rating > 0 ? R.string.rating_set_rating : R.string.rating_remove_rating, entry.getTitle()));
}
@Override