fix crash in StatusBaseViewHolder

This commit is contained in:
Conny Duck 2018-03-15 22:08:12 +01:00
parent 043ac58254
commit 98b652b7a1
1 changed files with 1 additions and 1 deletions

View File

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