Hide url button if link is specified but empty

This commit is contained in:
ByteHamster 2020-12-03 09:38:00 +01:00
parent 0dcf44f67e
commit 555bd7e951
1 changed files with 1 additions and 1 deletions

View File

@ -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);