mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 01:53:31 +00:00
fix: further eliminate the use of HTML decode in titles and subtitles
This commit is contained in:
parent
052e9d9068
commit
3c2ea38f1e
3 changed files with 10 additions and 10 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue