Skip to content
Snippets Groups Projects
Verified Commit a54240b3 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixes user avatars in user info screen being blurry

parent f52f97c2
No related branches found
No related tags found
No related merge requests found
......@@ -157,10 +157,12 @@ class UserInfoFragment : ServiceBoundFragment() {
} ?: Observable.just(IrcUser.NULL).map { user -> processUser(user) }
}.toLiveData().observe(this, Observer {
val processUser = { user: IrcUserInfo ->
avatar.post {
avatar.loadAvatars(
AvatarHelper.avatar(messageSettings, user, maxOf(avatar.width, avatar.height)),
crop = false
)
}
nick.text = user.nick
realName.text = contentFormatter.formatContent(user.realName ?: "",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment