add new avatar placeholder
This commit is contained in:
parent
2851e4d38b
commit
3708421362
11 changed files with 111 additions and 6 deletions
|
@ -232,8 +232,10 @@ abstract class StatusBaseViewHolder extends RecyclerView.ViewHolder {
|
|||
|
||||
previews[i].setVisibility(View.VISIBLE);
|
||||
|
||||
if (previewUrl == null || previewUrl.isEmpty()) {
|
||||
Picasso.with(context).load(mediaPreviewUnloadedId).into(previews[i]);
|
||||
if (TextUtils.isEmpty(previewUrl)) {
|
||||
Picasso.with(context)
|
||||
.load(mediaPreviewUnloadedId)
|
||||
.into(previews[i]);
|
||||
} else {
|
||||
Picasso.with(context)
|
||||
.load(previewUrl)
|
||||
|
|
|
@ -62,7 +62,7 @@ public class StatusViewHolder extends StatusBaseViewHolder {
|
|||
avatarReblog.setVisibility(View.VISIBLE);
|
||||
Picasso.with(context)
|
||||
.load(rebloggedUrl)
|
||||
.fit()
|
||||
.placeholder(R.drawable.avatar_default)
|
||||
.transform(new RoundedTransformation(25))
|
||||
.into(avatarReblog);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue