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/adapter | |
parent | 8eedb82f310dda9f7773b0af2fcf313244f65f1c (diff) | |
download | AntennaPod-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.java | 5 |
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)); |