|
|
|
|
@ -199,17 +199,17 @@ class StatsFragment : SessionObserverFragment(), StaticRowRepresentableDataSourc |
|
|
|
|
|
|
|
|
|
override fun onRowSelected(position: Int, row: RowRepresentable, fromAction: Boolean) { |
|
|
|
|
|
|
|
|
|
if (row is StatRepresentable) { |
|
|
|
|
|
|
|
|
|
// filter groups |
|
|
|
|
val groupResults = this.computedResults?.filter { |
|
|
|
|
it.group.name == row.groupName |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
groupResults?.firstOrNull()?.let { |
|
|
|
|
this.launchStatComputationWithEvolution(row.stat, it.group) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// if (row is StatRepresentable) { |
|
|
|
|
// |
|
|
|
|
// // filter groups |
|
|
|
|
// val groupResults = this.computedResults?.filter { |
|
|
|
|
// it.group.name == row.groupName |
|
|
|
|
// } |
|
|
|
|
// |
|
|
|
|
// groupResults?.firstOrNull()?.let { |
|
|
|
|
// this.launchStatComputationWithEvolution(row.stat, it.group) |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|