diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-08-30 13:47:27 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-08-30 13:47:27 -0700 |
commit | 6ef22270db0874d06d75075fe04bb560eebbae25 (patch) | |
tree | 1e7eb85aaa2cad5c34183ca6b62515ed96e25fbe /src/github/daneren2005 | |
parent | bbf2b490cc6fc90fbd29715c2871082f5798c035 (diff) | |
download | dsub-6ef22270db0874d06d75075fe04bb560eebbae25.tar.gz dsub-6ef22270db0874d06d75075fe04bb560eebbae25.tar.bz2 dsub-6ef22270db0874d06d75075fe04bb560eebbae25.zip |
Rating == 0 means it's being removed
Diffstat (limited to 'src/github/daneren2005')
-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 92709bde..4da1e7fa 100644 --- a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java +++ b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java @@ -1512,7 +1512,7 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR if (error instanceof OfflineException || error instanceof ServerTooOldException) {
msg = getErrorMessage(error);
} else {
- msg = context.getResources().getString(R.string.rating_set_rating_failed, entry.getTitle()) + " " + getErrorMessage(error);
+ msg = context.getResources().getString(rating > 0 ? R.string.rating_set_rating_failed : R.string.rating_remove_rating_failed, entry.getTitle()) + " " + getErrorMessage(error);
}
Util.toast(context, msg, false);
|