fix: public profile downloader (#578)

This commit is contained in:
Ayush Maurya
2024-01-15 01:06:02 +05:30
committed by GitHub
parent e9184f5244
commit 0994b8f36d

View File

@@ -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"]
@@ -70,4 +70,4 @@ class ProfilePictureDownloader : Feature("ProfilePictureDownloader", loadParams
}
}
}
}
}