summaryrefslogtreecommitdiff
path: root/app/src/main/java/de/danoeh/antennapod/view
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/view')
-rw-r--r--app/src/main/java/de/danoeh/antennapod/view/viewholder/EpisodeItemViewHolder.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/view/viewholder/EpisodeItemViewHolder.java b/app/src/main/java/de/danoeh/antennapod/view/viewholder/EpisodeItemViewHolder.java
index c1ab3a7a6..3839241d7 100644
--- a/app/src/main/java/de/danoeh/antennapod/view/viewholder/EpisodeItemViewHolder.java
+++ b/app/src/main/java/de/danoeh/antennapod/view/viewholder/EpisodeItemViewHolder.java
@@ -52,7 +52,7 @@ public class EpisodeItemViewHolder extends RecyclerView.ViewHolder {
private final TextView position;
private final TextView duration;
private final TextView size;
- public final TextView isNew;
+ public final ImageView isInbox;
public final ImageView isInQueue;
private final ImageView isVideo;
public final ImageView isFavorite;
@@ -85,7 +85,7 @@ public class EpisodeItemViewHolder extends RecyclerView.ViewHolder {
progressBar = itemView.findViewById(R.id.progressBar);
isInQueue = itemView.findViewById(R.id.ivInPlaylist);
isVideo = itemView.findViewById(R.id.ivIsVideo);
- isNew = itemView.findViewById(R.id.statusUnread);
+ isInbox = itemView.findViewById(R.id.statusInbox);
isFavorite = itemView.findViewById(R.id.isFavorite);
size = itemView.findViewById(R.id.size);
separatorIcons = itemView.findViewById(R.id.separatorIcons);
@@ -105,7 +105,7 @@ public class EpisodeItemViewHolder extends RecyclerView.ViewHolder {
leftPadding.setContentDescription(item.getTitle());
pubDate.setText(DateFormatter.formatAbbrev(activity, item.getPubDate()));
pubDate.setContentDescription(DateFormatter.formatForAccessibility(item.getPubDate()));
- isNew.setVisibility(item.isNew() ? View.VISIBLE : View.GONE);
+ isInbox.setVisibility(item.isNew() ? View.VISIBLE : View.GONE);
isFavorite.setVisibility(item.isTagged(FeedItem.TAG_FAVORITE) ? View.VISIBLE : View.GONE);
isInQueue.setVisibility(item.isTagged(FeedItem.TAG_QUEUE) ? View.VISIBLE : View.GONE);
container.setAlpha(item.isPlayed() ? 0.5f : 1.0f);
@@ -233,11 +233,11 @@ public class EpisodeItemViewHolder extends RecyclerView.ViewHolder {
* Hides the separator dot between icons and text if there are no icons.
*/
public void hideSeparatorIfNecessary() {
- boolean hasIcons = isNew.getVisibility() == View.VISIBLE
+ boolean hasIcons = isInbox.getVisibility() == View.VISIBLE
|| isInQueue.getVisibility() == View.VISIBLE
|| isVideo.getVisibility() == View.VISIBLE
|| isFavorite.getVisibility() == View.VISIBLE
- || isNew.getVisibility() == View.VISIBLE;
+ || isInbox.getVisibility() == View.VISIBLE;
separatorIcons.setVisibility(hasIcons ? View.VISIBLE : View.GONE);
}
}