public void setItemList(List<Segment> items) {
   itemList = items;
   if (itemList.size() == 0) {
     noLinksTV.setVisibility(View.VISIBLE);
   } else {
     noLinksTV.setVisibility(View.GONE);
   }
   notifyDataSetChanged();
 }
 public LinkTextAdapter(
     SuperTextActivity context, List<Segment> itemList, SefariaTextView noLinksTV) {
   this.itemList = itemList;
   this.activity = context;
   this.noLinksTV = noLinksTV;
   if (itemList == null) itemList = new ArrayList<>();
   if (itemList.size() == 0) {
     noLinksTV.setVisibility(View.VISIBLE);
   } else {
     noLinksTV.setVisibility(View.GONE);
   }
 }