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
Branches
Tags
No related merge requests found
...@@ -157,10 +157,12 @@ class UserInfoFragment : ServiceBoundFragment() { ...@@ -157,10 +157,12 @@ class UserInfoFragment : ServiceBoundFragment() {
} ?: Observable.just(IrcUser.NULL).map { user -> processUser(user) } } ?: Observable.just(IrcUser.NULL).map { user -> processUser(user) }
}.toLiveData().observe(this, Observer { }.toLiveData().observe(this, Observer {
val processUser = { user: IrcUserInfo -> val processUser = { user: IrcUserInfo ->
avatar.post {
avatar.loadAvatars( avatar.loadAvatars(
AvatarHelper.avatar(messageSettings, user, maxOf(avatar.width, avatar.height)), AvatarHelper.avatar(messageSettings, user, maxOf(avatar.width, avatar.height)),
crop = false crop = false
) )
}
nick.text = user.nick nick.text = user.nick
realName.text = contentFormatter.formatContent(user.realName ?: "", 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