summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2020-12-04 09:51:18 +0100
committerGitHub <noreply@github.com>2020-12-04 09:51:18 +0100
commit24e899051b082d047c14d540a57a13ecee0556ab (patch)
tree80b0b28979b0b5f2819df4902dbbbbd6e691fae1
parent0dcf44f67e791acef173d225fe049dae2519fe4b (diff)
parent555bd7e951e84da801b7753fc82dfe54e0e71bc0 (diff)
downloadAntennaPod-24e899051b082d047c14d540a57a13ecee0556ab.zip
Merge pull request #4729 from ByteHamster/fix-url-button
Hide url button if link is specified but empty
-rw-r--r--app/src/main/java/de/danoeh/antennapod/adapter/ChaptersListAdapter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/ChaptersListAdapter.java b/app/src/main/java/de/danoeh/antennapod/adapter/ChaptersListAdapter.java
index 002147071..24258fcae 100644
--- a/app/src/main/java/de/danoeh/antennapod/adapter/ChaptersListAdapter.java
+++ b/app/src/main/java/de/danoeh/antennapod/adapter/ChaptersListAdapter.java
@@ -65,7 +65,7 @@ public class ChaptersListAdapter extends RecyclerView.Adapter<ChaptersListAdapte
holder.duration.setText(context.getString(R.string.chapter_duration,
Converter.getDurationStringLocalized(context, (int) duration)));
- if (sc.getLink() == null) {
+ if (TextUtils.isEmpty(sc.getLink())) {
holder.link.setVisibility(View.GONE);
} else {
holder.link.setVisibility(View.VISIBLE);