Bugfixes
- Song duration textview size fix - <unknown> artist image fix
This commit is contained in:
parent
11ee05ce64
commit
b47f25a969
3 changed files with 3 additions and 4 deletions
|
|
@ -16,7 +16,7 @@ public class LastFMArtistImageUrlLoader {
|
||||||
public static final String TAG = LastFMArtistImageUrlLoader.class.getSimpleName();
|
public static final String TAG = LastFMArtistImageUrlLoader.class.getSimpleName();
|
||||||
|
|
||||||
public static void loadArtistImageUrl(final Context context, String queryArtist, boolean forceDownload, final ArtistImageUrlLoaderCallback callback) {
|
public static void loadArtistImageUrl(final Context context, String queryArtist, boolean forceDownload, final ArtistImageUrlLoaderCallback callback) {
|
||||||
if (queryArtist != null) {
|
if (queryArtist != null && !queryArtist.trim().equals("<unknown>")) {
|
||||||
String artistJSON = ArtistJSONStore.getInstance(context).getArtistJSON(queryArtist);
|
String artistJSON = ArtistJSONStore.getInstance(context).getArtistJSON(queryArtist);
|
||||||
if (artistJSON != null && !forceDownload) {
|
if (artistJSON != null && !forceDownload) {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ public class LastFMArtistThumbnailUrlLoader {
|
||||||
public static final String TAG = LastFMArtistThumbnailUrlLoader.class.getSimpleName();
|
public static final String TAG = LastFMArtistThumbnailUrlLoader.class.getSimpleName();
|
||||||
|
|
||||||
public static void loadArtistThumbnailUrl(final Context context, String queryArtist, boolean forceDownload, final ArtistThumbnailUrlLoaderCallback callback) {
|
public static void loadArtistThumbnailUrl(final Context context, String queryArtist, boolean forceDownload, final ArtistThumbnailUrlLoaderCallback callback) {
|
||||||
if (queryArtist != null) {
|
if (queryArtist != null && !queryArtist.trim().equals("<unknown>")) {
|
||||||
String artistJSON = ArtistJSONStore.getInstance(context).getArtistJSON(queryArtist);
|
String artistJSON = ArtistJSONStore.getInstance(context).getArtistJSON(queryArtist);
|
||||||
if (artistJSON != null && !forceDownload) {
|
if (artistJSON != null && !forceDownload) {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
|
|
@ -33,9 +33,8 @@
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/song_duration"
|
android:id="@+id/song_duration"
|
||||||
android:layout_width="40dp"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:fontFamily="sans-serif"
|
android:fontFamily="sans-serif"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue