2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-17 15:26:23 +00:00

[fenix] Show internal add-on version when available (https://github.com/mozilla-mobile/fenix/pull/8507)

This commit is contained in:
Arturo Mejia 2020-02-19 09:57:05 -05:00 committed by GitHub
parent c87350f5b3
commit 61e774fd16

View File

@ -72,7 +72,8 @@ class AddonDetailsFragment : Fragment(R.layout.fragment_add_on_details) {
} }
private fun bindVersion(addon: Addon, view: View) { private fun bindVersion(addon: Addon, view: View) {
view.version_text.text = addon.version view.version_text.text =
addon.installedState?.version?.ifEmpty { addon.version } ?: addon.version
} }
private fun bindAuthors(addon: Addon, view: View) { private fun bindAuthors(addon: Addon, view: View) {