fix crash in StatusBaseViewHolder

main
Conny Duck 7 years ago
parent 182e8a75ba
commit fd16a7c489
  1. 2
      app/src/main/java/com/keylesspalace/tusky/adapter/StatusBaseViewHolder.java

@ -114,7 +114,7 @@ abstract class StatusBaseViewHolder extends RecyclerView.ViewHolder {
} }
void setAvatar(String url, @Nullable String rebloggedUrl) { void setAvatar(String url, @Nullable String rebloggedUrl) {
if (url.isEmpty()) { if (TextUtils.isEmpty(url)) {
avatar.setImageResource(R.drawable.avatar_default); avatar.setImageResource(R.drawable.avatar_default);
} else { } else {
Picasso.with(avatar.getContext()) Picasso.with(avatar.getContext())

Loading…
Cancel
Save