aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/github/daneren2005/dsub/view/SongView.java
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-07-18 18:19:13 -0700
committerScott Jackson <daneren2005@gmail.com>2015-07-18 18:19:13 -0700
commit569281e423b93cf67db2141b49f04103036d4db5 (patch)
treeaf0def4c718a3ae42841b45bbae0c24c936befed /app/src/main/java/github/daneren2005/dsub/view/SongView.java
parent32ab835977f1544dd299508f66861881528004be (diff)
downloaddsub-569281e423b93cf67db2141b49f04103036d4db5.tar.gz
dsub-569281e423b93cf67db2141b49f04103036d4db5.tar.bz2
dsub-569281e423b93cf67db2141b49f04103036d4db5.zip
Update action mode to support albums, color when selected
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.java10
1 files changed, 1 insertions, 9 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 dcde0f92..b9c5fa50 100644
--- a/app/src/main/java/github/daneren2005/dsub/view/SongView.java
+++ b/app/src/main/java/github/daneren2005/dsub/view/SongView.java
@@ -42,7 +42,6 @@ import java.io.File;
public class SongView extends UpdateView2<MusicDirectory.Entry, Boolean> {
private static final String TAG = SongView.class.getSimpleName();
- private CheckedTextView checkedTextView;
private TextView titleTextView;
private TextView artistTextView;
private TextView durationTextView;
@@ -71,7 +70,6 @@ public class SongView extends UpdateView2<MusicDirectory.Entry, Boolean> {
super(context);
LayoutInflater.from(context).inflate(R.layout.song_list_item, this, true);
- checkedTextView = (CheckedTextView) findViewById(R.id.song_check);
titleTextView = (TextView) findViewById(R.id.song_title);
artistTextView = (TextView) findViewById(R.id.song_artist);
durationTextView = (TextView) findViewById(R.id.song_duration);
@@ -138,7 +136,6 @@ public class SongView extends UpdateView2<MusicDirectory.Entry, Boolean> {
titleTextView.setText(title);
artistTextView.setText(artist);
- checkedTextView.setVisibility(checkable ? View.VISIBLE : View.GONE);
this.setBackgroundColor(0x00000000);
ratingBar.setVisibility(View.GONE);
@@ -191,7 +188,7 @@ public class SongView extends UpdateView2<MusicDirectory.Entry, Boolean> {
@Override
protected void update() {
if(loaded) {
- setObjectImpl(item, checkedTextView.getVisibility() == View.VISIBLE);
+ setObjectImpl(item, item2);
}
if (downloadService == null || downloadFile == null) {
return;
@@ -297,11 +294,6 @@ public class SongView extends UpdateView2<MusicDirectory.Entry, Boolean> {
}
}
- @Override
- public void setChecked(boolean checked) {
- checkedTextView.setChecked(checked);
- }
-
public MusicDirectory.Entry getEntry() {
return item;
}