diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-09-17 13:15:12 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-09-17 13:15:12 -0700 |
commit | 1557ddad4cede328a59b4094884052231ba111b9 (patch) | |
tree | 1bc406423adc159b1d0e86d92681fc9499451474 /src/github | |
parent | ff5565b7d2580a999a89e4700bbd7af45d691ef4 (diff) | |
download | dsub-1557ddad4cede328a59b4094884052231ba111b9.tar.gz dsub-1557ddad4cede328a59b4094884052231ba111b9.tar.bz2 dsub-1557ddad4cede328a59b4094884052231ba111b9.zip |
Fix crash by using context's getResources
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/fragments/SubsonicFragment.java | 2 |
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
|