mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-23 09:10:04 +02:00
Avoid crash with friendica and suggestions
This commit is contained in:
parent
99644a7e64
commit
f029f785cc
1 changed files with 3 additions and 0 deletions
|
@ -93,6 +93,9 @@ public class SuggestionAdapter extends RecyclerView.Adapter<RecyclerView.ViewHol
|
|||
});
|
||||
holder.binding.followAction.setIconResource(R.drawable.ic_baseline_person_add_24);
|
||||
holder.binding.followAction.setBackgroundTintList(ColorStateList.valueOf(ContextCompat.getColor(context, R.color.cyanea_accent_dark_reference)));
|
||||
if (account == null) {
|
||||
return;
|
||||
}
|
||||
holder.binding.displayName.setText(
|
||||
account.getSpanDisplayName(context,
|
||||
new WeakReference<>(holder.binding.displayName)),
|
||||
|
|
Loading…
Reference in a new issue