Skip to content

Commit

Permalink
chore: Update the order of loadBimiAvatar parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyDL-Infomaniak committed Feb 21, 2025
1 parent e215cb4 commit 4cef56b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/infomaniak/mail/views/AvatarView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class AvatarView @JvmOverloads constructor(
binding.avatarImage.load(R.drawable.ic_unknown_user_avatar)
}

private fun loadBimiAvatar(bimi: Bimi, correspondent: Correspondent) = with(binding.avatarImage) {
private fun loadBimiAvatar(correspondent: Correspondent, bimi: Bimi) = with(binding.avatarImage) {
state.update(correspondent, bimi)
contentDescription = correspondent.email
loadAvatar(
Expand All @@ -199,7 +199,7 @@ class AvatarView @JvmOverloads constructor(
AvatarDisplayType.USER_AVATAR -> loadUserAvatar(correspondent!!, bimi)
AvatarDisplayType.CUSTOM_AVATAR,
AvatarDisplayType.INITIALS -> loadAvatarUsingDictionary(correspondent!!, contacts, bimi)
AvatarDisplayType.BIMI -> loadBimiAvatar(bimi!!, correspondent!!)
AvatarDisplayType.BIMI -> loadBimiAvatar(correspondent!!, bimi!!)
}
}

Expand Down

0 comments on commit 4cef56b

Please sign in to comment.