This commit is contained in:
Grishka 2024-02-26 17:59:41 +03:00
parent 3cdc27eb94
commit 8ea4c84a29
1 changed files with 2 additions and 0 deletions

View File

@ -83,6 +83,8 @@ public class LinkCardStatusDisplayItem extends StatusDisplayItem{
description.setVisibility(TextUtils.isEmpty(card.description) ? View.GONE : View.VISIBLE); description.setVisibility(TextUtils.isEmpty(card.description) ? View.GONE : View.VISIBLE);
} }
String cardDomain=Uri.parse(card.url).getHost(); String cardDomain=Uri.parse(card.url).getHost();
if(cardDomain.startsWith("www."))
cardDomain=cardDomain.substring(4);
if(isLarge && !TextUtils.isEmpty(card.authorName)){ if(isLarge && !TextUtils.isEmpty(card.authorName)){
domain.setText(itemView.getContext().getString(R.string.article_by_author, card.authorName)+" · "+cardDomain); domain.setText(itemView.getContext().getString(R.string.article_by_author, card.authorName)+" · "+cardDomain);
}else{ }else{