From 6ef22270db0874d06d75075fe04bb560eebbae25 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sat, 30 Aug 2014 13:47:27 -0700 Subject: Rating == 0 means it's being removed --- src/github/daneren2005/dsub/fragments/SubsonicFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3