Unverified Commit 4499d088 authored by Mygod's avatar Mygod Committed by GitHub

text2 should display id

parent 7e1a4c57
...@@ -63,11 +63,11 @@ class PluginPreferenceDialogFragment : PreferenceDialogFragmentCompat() { ...@@ -63,11 +63,11 @@ class PluginPreferenceDialogFragment : PreferenceDialogFragmentCompat() {
fun bind(plugin: Plugin, selected: Boolean = false) { fun bind(plugin: Plugin, selected: Boolean = false) {
this.plugin = plugin this.plugin = plugin
text1.text = plugin.label text1.text = plugin.label
text2.text = plugin.packageName text2.text = plugin.id
val typeface = if (selected) Typeface.BOLD else Typeface.NORMAL val typeface = if (selected) Typeface.BOLD else Typeface.NORMAL
text1.setTypeface(null, typeface) text1.setTypeface(null, typeface)
text2.setTypeface(null, typeface) text2.setTypeface(null, typeface)
text2.isVisible = plugin.packageName.isNotEmpty() && plugin.label != plugin.packageName text2.isVisible = plugin.id.isNotEmpty() && plugin.label != plugin.id
icon.setImageDrawable(plugin.icon) icon.setImageDrawable(plugin.icon)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment