mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-02-03 03:57:41 +01:00
Added icon to Feeditemlist to show whether an item is in the queue
This commit is contained in:
parent
fae73dfe2f
commit
1e275fecb3
BIN
res/drawable-hdpi/stat_playlist.png
Normal file
BIN
res/drawable-hdpi/stat_playlist.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 874 B |
BIN
res/drawable-ldpi/stat_playlist.png
Normal file
BIN
res/drawable-ldpi/stat_playlist.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 484 B |
BIN
res/drawable-mdpi/stat_playlist.png
Normal file
BIN
res/drawable-mdpi/stat_playlist.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 643 B |
BIN
res/drawable-xhdpi/stat_playlist.png
Normal file
BIN
res/drawable-xhdpi/stat_playlist.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
@ -70,6 +70,13 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imgvInPlaylist"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@drawable/stat_playlist"
|
||||
android:visibility="gone" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imgvDownloaded"
|
||||
android:layout_width="wrap_content"
|
||||
|
@ -4,6 +4,7 @@ import java.text.DateFormat;
|
||||
import java.util.List;
|
||||
|
||||
import de.podfetcher.feed.FeedItem;
|
||||
import de.podfetcher.feed.FeedManager;
|
||||
import de.podfetcher.util.Converter;
|
||||
import de.podfetcher.R;
|
||||
import android.widget.ArrayAdapter;
|
||||
@ -55,6 +56,8 @@ public class FeedItemlistAdapter extends ArrayAdapter<FeedItem> {
|
||||
.findViewById(R.id.butAction);
|
||||
holder.published = (TextView) convertView
|
||||
.findViewById(R.id.txtvPublished);
|
||||
holder.inPlaylist = (ImageView) convertView
|
||||
.findViewById(R.id.imgvInPlaylist);
|
||||
holder.downloaded = (ImageView) convertView
|
||||
.findViewById(R.id.imgvDownloaded);
|
||||
holder.type = (ImageView) convertView.findViewById(R.id.imgvType);
|
||||
@ -99,6 +102,11 @@ public class FeedItemlistAdapter extends ArrayAdapter<FeedItem> {
|
||||
holder.encInfo.setVisibility(View.GONE);
|
||||
} else {
|
||||
holder.encInfo.setVisibility(View.VISIBLE);
|
||||
if (FeedManager.getInstance().isInQueue(item)) {
|
||||
holder.inPlaylist.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
holder.inPlaylist.setVisibility(View.GONE);
|
||||
}
|
||||
if (item.getMedia().isDownloaded()) {
|
||||
holder.lenSize.setText(Converter.getDurationStringShort(item
|
||||
.getMedia().getDuration()));
|
||||
@ -138,6 +146,7 @@ public class FeedItemlistAdapter extends ArrayAdapter<FeedItem> {
|
||||
TextView feedtitle;
|
||||
TextView published;
|
||||
TextView lenSize;
|
||||
ImageView inPlaylist;
|
||||
ImageView downloaded;
|
||||
ImageView type;
|
||||
ImageView downloading;
|
||||
|
Loading…
x
Reference in New Issue
Block a user