Commit 151078d0 authored by Christophe Deschamps's avatar Christophe Deschamps
Browse files

Lorsque plusieurs actions sont configurées, la ligne qui sépare verticalement...

Lorsque plusieurs actions sont configurées, la ligne qui sépare verticalement deux actions est plus épaisse que les lignes du haut et du bas encadrant les actions.

Former-commit-id: 6e5c442c2bdd9cbc322097a6d6a111bbf6162966
parent 1faa1db3
......@@ -36,15 +36,17 @@ class DeviceInfoActionsAdapter(private val actions: ArrayList<Action>) :
private val icon = itemView.icon
private val type: TextView = itemView.label
private val code: TextView = itemView.code
private val topSeparator = itemView.top_separator
fun bindItems(action: Action) {
fun bindItems(action: Action, showTopSeparator:Boolean) {
type.text = action.typeName()
code.text = action.code
topSeparator.visibility = if (showTopSeparator) View.VISIBLE else View.INVISIBLE
Theme.setIcon(ActionTypes.iconNameForActionType(action.type!!), icon)
override fun onBindViewHolder(holder: ViewHolder, position: Int) {
holder.bindItems(actions[position], position == 0)
\ No newline at end of file
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