|
|
|
|
@ -6,7 +6,7 @@ import net.pokeranalytics.android.ui.view.RowRepresentable |
|
|
|
|
import net.pokeranalytics.android.ui.view.RowViewType |
|
|
|
|
import net.pokeranalytics.android.ui.view.rowrepresentable.FilterElementRow.* |
|
|
|
|
|
|
|
|
|
enum class FilterSectionRow(override val resId: Int?): RowRepresentable { |
|
|
|
|
enum class FilterSectionRow(override val resId: Int?) : RowRepresentable { |
|
|
|
|
CASH_TOURNAMENT(net.pokeranalytics.android.R.string.cash_or_tournament), |
|
|
|
|
LIVE_ONLINE(net.pokeranalytics.android.R.string.live_or_online), |
|
|
|
|
GAME(net.pokeranalytics.android.R.string.games), |
|
|
|
|
@ -46,10 +46,10 @@ enum class FilterSectionRow(override val resId: Int?): RowRepresentable { |
|
|
|
|
|
|
|
|
|
override val viewType: Int = RowViewType.HEADER_TITLE.ordinal |
|
|
|
|
|
|
|
|
|
val allowMultiSelection : Boolean |
|
|
|
|
val allowMultiSelection: Boolean |
|
|
|
|
get() = (this.selectionType == SelectionType.MULTIPLE) |
|
|
|
|
|
|
|
|
|
val filterElements : List < RowRepresentable > by lazy { |
|
|
|
|
val filterElements: List<RowRepresentable> by lazy { |
|
|
|
|
arrayListOf<RowRepresentable>(this).apply { |
|
|
|
|
this.addAll( |
|
|
|
|
when (this@FilterSectionRow) { |
|
|
|
|
@ -149,7 +149,6 @@ enum class FilterSectionRow(override val resId: Int?): RowRepresentable { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|