fix bug where avatars where shown too small (#1199)
This commit is contained in:
parent
76ce28980c
commit
fb2d3024ab
|
@ -50,9 +50,12 @@ public class StatusViewHolder extends StatusBaseViewHolder {
|
||||||
super.setAvatar(url, rebloggedUrl, isBot);
|
super.setAvatar(url, rebloggedUrl, isBot);
|
||||||
Context context = avatar.getContext();
|
Context context = avatar.getContext();
|
||||||
|
|
||||||
if (!TextUtils.isEmpty(rebloggedUrl)) {
|
boolean hasReblog = rebloggedUrl != null && !rebloggedUrl.isEmpty();
|
||||||
int padding = Utils.dpToPx(context, 12);
|
int padding = hasReblog ? Utils.dpToPx(context, 12) : 0;
|
||||||
avatar.setPaddingRelative(0, 0, padding, padding);
|
|
||||||
|
avatar.setPaddingRelative(0, 0, padding, padding);
|
||||||
|
|
||||||
|
if (hasReblog) {
|
||||||
avatarInset.setVisibility(View.VISIBLE);
|
avatarInset.setVisibility(View.VISIBLE);
|
||||||
Glide.with(context)
|
Glide.with(context)
|
||||||
.load(rebloggedUrl)
|
.load(rebloggedUrl)
|
||||||
|
|
Loading…
Reference in New Issue