diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2022-05-03 22:10:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-03 22:10:39 +0200 |
commit | dfcc342c57e263754bf145501cd237c7570debd2 (patch) | |
tree | 1861894339adfac5bceb40805d40de67933996ed /app/src/main/java/de/danoeh/antennapod/view | |
parent | 8eedb82f310dda9f7773b0af2fcf313244f65f1c (diff) | |
download | AntennaPod-dfcc342c57e263754bf145501cd237c7570debd2.zip |
Rename 'new' screen to inbox (#5460)
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/view')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/view/viewholder/EpisodeItemViewHolder.java | 10 |
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); } } |