diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2024-02-16 23:50:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-16 23:50:12 +0100 |
commit | c7c5ab567b2681a946ec756cdd17bd99128f9f54 (patch) | |
tree | daf0e7bdb423755ddf67eafff388e0316bbed7f5 /app/src | |
parent | c07ae17962b0fbb757c42e873d9c06cdac3a52ae (diff) | |
download | AntennaPod-c7c5ab567b2681a946ec756cdd17bd99128f9f54.zip |
Use proper plurals when showing number of episodes (#6922)
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/QueueFragment.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/QueueFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/QueueFragment.java index aacd05fcd..1a2b6438f 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/QueueFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/QueueFragment.java @@ -33,7 +33,6 @@ import org.greenrobot.eventbus.Subscribe; import org.greenrobot.eventbus.ThreadMode; import java.util.List; -import java.util.Locale; import de.danoeh.antennapod.R; import de.danoeh.antennapod.activity.MainActivity; @@ -477,9 +476,8 @@ public class QueueFragment extends Fragment implements MaterialToolbar.OnMenuIte } private void refreshInfoBar() { - String info = String.format(Locale.getDefault(), "%d%s", - queue.size(), getString(R.string.episodes_suffix)); - if (queue.size() > 0) { + String info = getResources().getQuantityString(R.plurals.num_episodes, queue.size(), queue.size()); + if (!queue.isEmpty()) { long timeLeft = 0; for (FeedItem item : queue) { float playbackSpeed = 1; |