Merge pull request #4729 from ByteHamster/fix-url-button
Hide url button if link is specified but empty
This commit is contained in:
commit
24e899051b
@ -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…
x
Reference in New Issue
Block a user