Clean old separator management

feature/top10
Aurelien Hubert 7 years ago
parent 91eac1790b
commit 0aaa398229
  1. 6
      app/src/main/java/net/pokeranalytics/android/ui/view/RowRepresentable.kt
  2. 1
      app/src/main/java/net/pokeranalytics/android/ui/view/RowViewType.kt
  3. 8
      app/src/main/java/net/pokeranalytics/android/ui/view/rowrepresentable/SessionRow.kt

@ -30,17 +30,11 @@ interface Displayable : Localizable {
return -1 return -1
} }
val relatedResultsRepresentable: LiveData? val relatedResultsRepresentable: LiveData?
get() { get() {
return null return null
} }
val needSeparator: Boolean
get() {
return false
}
val bottomSheetType: BottomSheetType val bottomSheetType: BottomSheetType
get() { get() {
return BottomSheetType.NONE return BottomSheetType.NONE

@ -274,7 +274,6 @@ enum class RowViewType {
adapter.delegate?.onRowSelected(position, row) adapter.delegate?.onRowSelected(position, row)
} }
itemView.rowStatsTitleValue_container.setOnClickListener(listener) itemView.rowStatsTitleValue_container.setOnClickListener(listener)
itemView.rowStatsTitleValue_separator.visibility = if (row.needSeparator) View.VISIBLE else View.GONE
} }
} }

@ -87,14 +87,6 @@ enum class SessionRow : RowRepresentable {
} }
} }
override val needSeparator: Boolean
get() {
return when (this) {
SessionRow.TIPS -> true
else -> false
}
}
override val resId: Int? override val resId: Int?
get() { get() {
return when (this) { return when (this) {

Loading…
Cancel
Save