|
|
|
@ -70,21 +70,21 @@ class ProgressReportFragment : AbstractReportFragment() { |
|
|
|
|
|
|
|
|
|
|
|
val fragmentManager = parentActivity?.supportFragmentManager |
|
|
|
val fragmentManager = parentActivity?.supportFragmentManager |
|
|
|
val fragmentTransaction = fragmentManager?.beginTransaction() |
|
|
|
val fragmentTransaction = fragmentManager?.beginTransaction() |
|
|
|
graphFragment = GraphFragment.newInstance(GraphFragment.Style.LINE) |
|
|
|
this.graphFragment = GraphFragment.newInstance(GraphFragment.Style.LINE) |
|
|
|
fragmentTransaction?.add(R.id.graphContainer, graphFragment) |
|
|
|
fragmentTransaction?.add(R.id.graphContainer, this.graphFragment) |
|
|
|
fragmentTransaction?.commit() |
|
|
|
fragmentTransaction?.commit() |
|
|
|
|
|
|
|
|
|
|
|
this.stat.aggregationTypes.firstOrNull()?.let { |
|
|
|
this.stat.aggregationTypes.firstOrNull()?.let { |
|
|
|
reports[it] = this.selectedReport |
|
|
|
this.reports[it] = this.selectedReport |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.stat.aggregationTypes.firstOrNull()?.let { aggregationType -> |
|
|
|
this.stat.aggregationTypes.firstOrNull()?.let { aggregationType -> |
|
|
|
reports[aggregationType]?.let { report -> |
|
|
|
this.reports[aggregationType]?.let { report -> |
|
|
|
setGraphData(report, aggregationType) |
|
|
|
setGraphData(report, aggregationType) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
val aggregationTypes = stat.aggregationTypes |
|
|
|
val aggregationTypes = this.stat.aggregationTypes |
|
|
|
|
|
|
|
|
|
|
|
aggregationTypes.forEachIndexed { index, type -> |
|
|
|
aggregationTypes.forEachIndexed { index, type -> |
|
|
|
val chip = Chip(requireContext()) |
|
|
|
val chip = Chip(requireContext()) |
|
|
|
|