Hide url button if link is specified but empty
This commit is contained in:
parent
0dcf44f67e
commit
555bd7e951
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue