Remove duplicate label from partition table RecyclerView

This commit is contained in:
Davide Depau 2018-08-17 21:49:50 +02:00
parent 4b67f41c74
commit 95af3899d3

View file

@ -52,12 +52,6 @@ class PartitionTableRecyclerViewAdapter(private val dataset: List<Partition>) :
kv.value.text = part.fsType.getString(layout.context)
layout.part_data_grid.addView(kv)
}
if (part.fsLabel != null) {
kv = li.inflate(R.layout.part_data_keyvalue, layout.part_data_grid, false) as LinearLayout
kv.key.text = layout.context.getString(R.string.fs_label)
kv.value.text = part.fsLabel
layout.part_data_grid.addView(kv)
}
if (part.size != null) {
kv = li.inflate(R.layout.part_data_keyvalue, layout.part_data_grid, false) as LinearLayout
kv.key.text = layout.context.getString(R.string.part_size)