From bf6721842220d7e89a0c3a451f5965e57feb9ca0 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Wed, 3 Jan 2024 20:32:56 +0100 Subject: Print duration as number of days only on Echo (#6842) Reverts an accidental change to the queue time display --- ui/echo/src/main/java/de/danoeh/antennapod/ui/echo/EchoActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui/echo/src/main/java/de') diff --git a/ui/echo/src/main/java/de/danoeh/antennapod/ui/echo/EchoActivity.java b/ui/echo/src/main/java/de/danoeh/antennapod/ui/echo/EchoActivity.java index 92adaed2e..50b34b6e3 100644 --- a/ui/echo/src/main/java/de/danoeh/antennapod/ui/echo/EchoActivity.java +++ b/ui/echo/src/main/java/de/danoeh/antennapod/ui/echo/EchoActivity.java @@ -210,7 +210,7 @@ public class EchoActivity extends AppCompatActivity { int daysUntil2024 = Math.max(356 - Calendar.getInstance().get(Calendar.DAY_OF_YEAR) + 1, 1); long secondsPerDay = queueSecondsLeft / daysUntil2024; String timePerDay = Converter.getDurationStringLocalized( - getLocalizedResources(this, getEchoLanguage()), secondsPerDay * 1000); + getLocalizedResources(this, getEchoLanguage()), secondsPerDay * 1000, true); double hoursPerDay = (double) (secondsPerDay / 3600); if (hoursPerDay < 1.5) { viewBinding.aboveLabel.setText(R.string.echo_queue_title_clean); @@ -235,7 +235,7 @@ public class EchoActivity extends AppCompatActivity { } viewBinding.smallLabel.setText(getString(R.string.echo_listened_after_time, Converter.getDurationStringLocalized( - getLocalizedResources(this, getEchoLanguage()), timeBetweenReleaseAndPlay))); + getLocalizedResources(this, getEchoLanguage()), timeBetweenReleaseAndPlay, true))); currentDrawable = new RotatingSquaresScreen(this); break; case 4: -- cgit v1.2.3