style: refined the design of favorite and rating indicators

This commit is contained in:
CappielloAntonio 2024-03-24 18:50:05 +01:00
parent 58d540b939
commit ff6bf20c30
14 changed files with 203 additions and 48 deletions

View file

@ -195,21 +195,6 @@ public class MusicUtil {
return context.getString(R.string.label_placeholder);
}
public static String getRatingNumber(Integer ratingNumber) {
if (ratingNumber == null || !Preferences.showItemRating()) return "";
StringBuilder builder = new StringBuilder();
builder.append("");
builder.append(" ");
for (int i = 0; i < ratingNumber; i++) {
builder.append("");
}
return builder.toString();
}
public static String forceReadableString(String string) {
if (string != null) {
return getReadableString(string)