mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-01-31 22:53:37 +00:00
Moved HTML info decoding in its own static class
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.cappielloantonio.play.util;
|
||||
|
||||
import android.text.Html;
|
||||
|
||||
import com.cappielloantonio.play.App;
|
||||
import com.cappielloantonio.play.R;
|
||||
import com.cappielloantonio.play.glide.CustomGlideRequest;
|
||||
@@ -47,6 +49,14 @@ public class MusicUtil {
|
||||
}
|
||||
}
|
||||
|
||||
public static String getReadableInfo(String info) {
|
||||
if (info != null) {
|
||||
return Html.fromHtml(info, Html.FROM_HTML_MODE_COMPACT).toString();
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
public static int getDefaultPicPerCategory(String category) {
|
||||
if (category.equals(CustomGlideRequest.SONG_PIC)) {
|
||||
return R.drawable.default_album_art;
|
||||
|
||||
Reference in New Issue
Block a user