Update table size display

feature/top10
Aurelien Hubert 7 years ago
parent 664a7799bb
commit dd9142e1a3
  1. 8
      app/src/main/java/net/pokeranalytics/android/model/TableSize.kt

@ -5,10 +5,10 @@ import net.pokeranalytics.android.R
import net.pokeranalytics.android.ui.view.RowRepresentable
import net.pokeranalytics.android.ui.view.RowViewType
class TableSize(var numberOfPlayer:Int): RowRepresentable {
class TableSize(var numberOfPlayer: Int) : RowRepresentable {
companion object {
val all = Array(8, init =
{ index -> TableSize(index+2)})
val all = Array(9, init =
{ index -> TableSize(index + 2) })
}
override val resId: Int?
@ -25,7 +25,7 @@ class TableSize(var numberOfPlayer:Int): RowRepresentable {
return if (this.numberOfPlayer == 2) {
context.getString(it)
} else {
"$this.numberOfPlayer$context.getString(it)"
"${this.numberOfPlayer}-${context.getString(it)}"
}
}
return super.localizedTitle(context)

Loading…
Cancel
Save