fix: further eliminate the use of HTML decode in titles and subtitles

This commit is contained in:
CappielloAntonio 2024-08-30 15:27:16 +02:00
parent 052e9d9068
commit 3c2ea38f1e
3 changed files with 10 additions and 10 deletions

View file

@ -179,14 +179,6 @@ public class MusicUtil {
}
}
public static String getReadableString(String string) {
if (string != null) {
return Html.fromHtml(string, Html.FROM_HTML_MODE_COMPACT).toString();
}
return "";
}
public static String getReadableTrackNumber(Context context, Integer trackNumber) {
if (trackNumber != null) {
return String.valueOf(trackNumber);
@ -195,6 +187,14 @@ public class MusicUtil {
return context.getString(R.string.label_placeholder);
}
public static String getReadableString(String string) {
if (string != null) {
return Html.fromHtml(string, Html.FROM_HTML_MODE_COMPACT).toString();
}
return "";
}
public static String forceReadableString(String string) {
if (string != null) {
return getReadableString(string)