summaryrefslogtreecommitdiff
path: root/app/src/main/java/de/danoeh/antennapod/adapter
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2022-05-03 22:10:39 +0200
committerGitHub <noreply@github.com>2022-05-03 22:10:39 +0200
commitdfcc342c57e263754bf145501cd237c7570debd2 (patch)
tree1861894339adfac5bceb40805d40de67933996ed /app/src/main/java/de/danoeh/antennapod/adapter
parent8eedb82f310dda9f7773b0af2fcf313244f65f1c (diff)
downloadAntennaPod-dfcc342c57e263754bf145501cd237c7570debd2.zip
Rename 'new' screen to inbox (#5460)
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/adapter')
-rw-r--r--app/src/main/java/de/danoeh/antennapod/adapter/NavListAdapter.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/NavListAdapter.java b/app/src/main/java/de/danoeh/antennapod/adapter/NavListAdapter.java
index 51fc63f86..6a3758358 100644
--- a/app/src/main/java/de/danoeh/antennapod/adapter/NavListAdapter.java
+++ b/app/src/main/java/de/danoeh/antennapod/adapter/NavListAdapter.java
@@ -25,6 +25,7 @@ import com.joanzapata.iconify.Iconify;
import com.joanzapata.iconify.widget.IconTextView;
import de.danoeh.antennapod.R;
import de.danoeh.antennapod.activity.PreferenceActivity;
+import de.danoeh.antennapod.fragment.InboxFragment;
import de.danoeh.antennapod.model.feed.Feed;
import de.danoeh.antennapod.core.glide.ApGlideSettings;
import de.danoeh.antennapod.core.preferences.UserPreferences;
@@ -114,6 +115,8 @@ public class NavListAdapter extends RecyclerView.Adapter<NavListAdapter.Holder>
switch (tag) {
case QueueFragment.TAG:
return R.drawable.ic_playlist;
+ case InboxFragment.TAG:
+ return R.drawable.ic_inbox;
case EpisodesFragment.TAG:
return R.drawable.ic_feed;
case DownloadsFragment.TAG:
@@ -242,7 +245,7 @@ public class NavListAdapter extends RecyclerView.Adapter<NavListAdapter.Holder>
holder.count.setText(NumberFormat.getInstance().format(queueSize));
holder.count.setVisibility(View.VISIBLE);
}
- } else if (tag.equals(EpisodesFragment.TAG)) {
+ } else if (tag.equals(InboxFragment.TAG)) {
int unreadItems = itemAccess.getNumberOfNewItems();
if (unreadItems > 0) {
holder.count.setText(NumberFormat.getInstance().format(unreadItems));