mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-11 22:03:54 +00:00
parent
4f78309e51
commit
5ec9197912
@ -15,12 +15,12 @@ public class AvatarImageView extends ImageView {
|
|||||||
|
|
||||||
public AvatarImageView(Context context) {
|
public AvatarImageView(Context context) {
|
||||||
super(context);
|
super(context);
|
||||||
setScaleType(ScaleType.CENTER_INSIDE);
|
setScaleType(ScaleType.CENTER_CROP);
|
||||||
}
|
}
|
||||||
|
|
||||||
public AvatarImageView(Context context, AttributeSet attrs) {
|
public AvatarImageView(Context context, AttributeSet attrs) {
|
||||||
super(context, attrs);
|
super(context, attrs);
|
||||||
setScaleType(ScaleType.CENTER_INSIDE);
|
setScaleType(ScaleType.CENTER_CROP);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAvatar(@Nullable Recipient recipient, boolean quickContactEnabled) {
|
public void setAvatar(@Nullable Recipient recipient, boolean quickContactEnabled) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user