Skip to content

Commit

Permalink
Use bindVersion in InstalledAddonDetailsActivity.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
rvandermeulen committed Nov 2, 2022
1 parent abef20d commit fe78f34
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -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
Expand Down Expand Up @@ -75,6 +76,13 @@ class InstalledAddonDetailsActivity : AppCompatActivity() {
bindAllowInPrivateBrowsingSwitch(addon)

bindRemoveButton(addon)

bindVersion(addon)
}

private fun bindVersion(addon: Addon) {
val versionView = findViewById<TextView>(R.id.version_text)
versionView.text = addon.version
}

private fun bindEnableSwitch(addon: Addon) {
Expand Down

0 comments on commit fe78f34

Please sign in to comment.