summaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorH. Lehmann <ByteHamster@users.noreply.github.com>2020-05-16 23:26:22 +0200
committerGitHub <noreply@github.com>2020-05-16 23:26:22 +0200
commit20678a94cd7595aa8faa6116af7b2e2103c8f45a (patch)
tree6610673d3ba5bb68ea28e612fa2993fe9f75e77f /app/src/main
parent42badd5f2f4ad41b3d4e96892256fc1c3525bfd6 (diff)
parente270b13f8d4713f85383e604bbd71a637ce51b36 (diff)
downloadAntennaPod-20678a94cd7595aa8faa6116af7b2e2103c8f45a.zip
Merge pull request #4162 from ByteHamster/fixes-without-duration
Various fixes for feeds that do not specify duration
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/de/danoeh/antennapod/view/viewholder/EpisodeItemViewHolder.java5
1 files changed, 1 insertions, 4 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 8584befbc..b7e1728b5 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
@@ -7,15 +7,11 @@ import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
-import android.view.accessibility.AccessibilityEvent;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;
import androidx.cardview.widget.CardView;
-import androidx.core.view.AccessibilityDelegateCompat;
-import androidx.core.view.ViewCompat;
-import androidx.core.view.accessibility.AccessibilityNodeInfoCompat;
import androidx.recyclerview.widget.RecyclerView;
import com.joanzapata.iconify.Iconify;
@@ -201,6 +197,7 @@ public class EpisodeItemViewHolder extends RecyclerView.ViewHolder {
progressBar.setProgress((int) (100.0 * event.getPosition() / event.getDuration()));
position.setText(Converter.getDurationStringLong(event.getPosition()));
duration.setText(Converter.getDurationStringLong(event.getDuration()));
+ duration.setVisibility(View.VISIBLE); // Even if the duration was previously unknown, it is now known
}
/**