added detailed display on screen (untested)
This commit is contained in:
@@ -10,6 +10,7 @@ import com.badlogic.gdx.scenes.scene2d.ui.Image;
|
||||
import com.badlogic.gdx.scenes.scene2d.ui.Label;
|
||||
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
|
||||
import com.badlogic.gdx.scenes.scene2d.ui.Table;
|
||||
import com.badlogic.gdx.scenes.scene2d.utils.Drawable;
|
||||
import com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable;
|
||||
import com.badlogic.gdx.utils.Array;
|
||||
|
||||
@@ -89,8 +90,12 @@ public class MusicSelectable extends Button {
|
||||
|
||||
public void loadAlbumCover() {
|
||||
metadata.loadAlbumCover();
|
||||
Texture texture = defaultAlbumArt;
|
||||
if (metadata.getAlbumCover() != null) {
|
||||
texture = metadata.getAlbumCover();
|
||||
}
|
||||
synchronized (album) {
|
||||
album.setDrawable(new TextureRegionDrawable(new TextureRegion(metadata.getAlbumCover())));
|
||||
album.setDrawable(new TextureRegionDrawable(new TextureRegion(texture)));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user