Merge pull request #419 from FineFindus/fix/bot-icon
fix(Search): display bot icon only for bots
This commit is contained in:
commit
38996d8921
|
@ -148,9 +148,7 @@ public class AccountViewHolder extends BindableViewHolder<AccountViewModel> impl
|
||||||
pronouns.setVisibility(pronounsString.isPresent() ? View.VISIBLE : View.GONE);
|
pronouns.setVisibility(pronounsString.isPresent() ? View.VISIBLE : View.GONE);
|
||||||
pronounsString.ifPresent(p -> HtmlParser.setTextWithCustomEmoji(pronouns, p, item.account.emojis));
|
pronounsString.ifPresent(p -> HtmlParser.setTextWithCustomEmoji(pronouns, p, item.account.emojis));
|
||||||
|
|
||||||
if(item.account.bot) {
|
botIcon.setVisibility(item.account.bot ? View.VISIBLE : View.GONE);
|
||||||
botIcon.setVisibility(View.VISIBLE);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* unused in megalodon
|
/* unused in megalodon
|
||||||
boolean hasVerifiedLink=item.verifiedLink!=null;
|
boolean hasVerifiedLink=item.verifiedLink!=null;
|
||||||
|
|
Loading…
Reference in New Issue