aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/github/daneren2005/dsub/view/SongView.java
diff options
context:
space:
mode:
authorRemi Drouin <rdrouin@graimatterlabs.ai>2022-07-12 12:21:00 +0200
committerRemi Drouin <rdrouin@graimatterlabs.ai>2022-07-12 12:21:00 +0200
commit9acd92c0052a63b901b3bbe68733b96d8b791ee8 (patch)
treeaa218e44cec031d762a90958d6f0be0a56068060 /app/src/main/java/github/daneren2005/dsub/view/SongView.java
parenta83b480aa4167a35b29935ddb1c0eb33da6d3f3c (diff)
downloaddsub-9acd92c0052a63b901b3bbe68733b96d8b791ee8.tar.gz
dsub-9acd92c0052a63b901b3bbe68733b96d8b791ee8.tar.bz2
dsub-9acd92c0052a63b901b3bbe68733b96d8b791ee8.zip
Add song suffix as details of list song item
Diffstat (limited to 'app/src/main/java/github/daneren2005/dsub/view/SongView.java')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/view/SongView.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/view/SongView.java b/app/src/main/java/github/daneren2005/dsub/view/SongView.java
index 320c5933..7a91ea6e 100644
--- a/app/src/main/java/github/daneren2005/dsub/view/SongView.java
+++ b/app/src/main/java/github/daneren2005/dsub/view/SongView.java
@@ -53,6 +53,7 @@ public class SongView extends UpdateView2<MusicDirectory.Entry, Boolean> {
private ImageView bookmarkButton;
private ImageView playedButton;
private View bottomRowView;
+ private TextView suffixTextView;
private DownloadService downloadService;
private long revision = -1;
@@ -92,6 +93,7 @@ public class SongView extends UpdateView2<MusicDirectory.Entry, Boolean> {
playedButton = (ImageButton) findViewById(R.id.song_played);
moreButton = (ImageView) findViewById(R.id.item_more);
bottomRowView = findViewById(R.id.song_bottom);
+ suffixTextView = (TextView) findViewById(R.id.song_suffix);
}
public void setObjectImpl(MusicDirectory.Entry song, Boolean checkable) {
@@ -175,6 +177,7 @@ public class SongView extends UpdateView2<MusicDirectory.Entry, Boolean> {
titleTextView.setText(title);
artistTextView.setText(artist);
+ suffixTextView.setText(song.getSuffix());
this.setBackgroundColor(0x00000000);
ratingBar.setVisibility(View.GONE);