Skip to content

Commit

Permalink
Fix profile background downloading instead of Avatar and vice versa
Browse files Browse the repository at this point in the history
  • Loading branch information
RevealedSoulEven authored Jan 14, 2024
1 parent e9184f5 commit fd4dfa7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class ProfilePictureDownloader : Feature("ProfilePictureDownloader", loadParams
).apply {
setTitle(this@ProfilePictureDownloader.context.translation["profile_picture_downloader.title"])
val choices = mutableMapOf<String, String>()
backgroundUrl?.let { choices["avatar_option"] = it }
avatarUrl?.let { choices["background_option"] = it }
backgroundUrl?.let { choices["background_option"] = it }
avatarUrl?.let { choices["avatar_option"] = it }

setItems(choices.keys.map {
this@ProfilePictureDownloader.context.translation["profile_picture_downloader.$it"]
Expand Down Expand Up @@ -70,4 +70,4 @@ class ProfilePictureDownloader : Feature("ProfilePictureDownloader", loadParams
}
}
}
}
}

0 comments on commit fd4dfa7

Please sign in to comment.