From fe78f3430e78deb24b00385779fc611f27e73388 Mon Sep 17 00:00:00 2001 From: Ryan VanderMeulen Date: Tue, 1 Nov 2022 20:57:57 -0400 Subject: [PATCH] Use bindVersion in InstalledAddonDetailsActivity.kt --- .../browser/addons/InstalledAddonDetailsActivity.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/main/java/org/mozilla/reference/browser/addons/InstalledAddonDetailsActivity.kt b/app/src/main/java/org/mozilla/reference/browser/addons/InstalledAddonDetailsActivity.kt index 2b4e3c86d..0681fbe4c 100644 --- a/app/src/main/java/org/mozilla/reference/browser/addons/InstalledAddonDetailsActivity.kt +++ b/app/src/main/java/org/mozilla/reference/browser/addons/InstalledAddonDetailsActivity.kt @@ -7,6 +7,7 @@ package org.mozilla.reference.browser.addons import android.content.Intent import android.os.Bundle import android.view.View +import android.widget.TextView import android.widget.Toast import androidx.appcompat.app.AppCompatActivity import androidx.appcompat.widget.SwitchCompat @@ -75,6 +76,13 @@ class InstalledAddonDetailsActivity : AppCompatActivity() { bindAllowInPrivateBrowsingSwitch(addon) bindRemoveButton(addon) + + bindVersion(addon) + } + + private fun bindVersion(addon: Addon) { + val versionView = findViewById(R.id.version_text) + versionView.text = addon.version } private fun bindEnableSwitch(addon: Addon) {