@ -87,9 +87,7 @@ class ProgressReportFragment : AbstractReportFragment() {
fragmentTransaction ?. add ( R . id . graphContainer , graphFragment )
fragmentTransaction ?. add ( R . id . graphContainer , graphFragment )
fragmentTransaction ?. commit ( )
fragmentTransaction ?. commit ( )
this . aggregationTypes = stat . aggregationTypes
stat . aggregationTypes . firstOrNull ( ) ?. let { aggregationType ->
this . aggregationTypes . firstOrNull ( ) ?. let { aggregationType ->
reports [ aggregationType ] ?. let { report ->
reports [ aggregationType ] ?. let { report ->
setGraphData ( report , aggregationType )
setGraphData ( report , aggregationType )
}
}
@ -97,7 +95,7 @@ class ProgressReportFragment : AbstractReportFragment() {
val aggregationTypes = stat . aggregationTypes
val aggregationTypes = stat . aggregationTypes
this . aggregationTypes . forEachIndexed { index , type ->
aggregationTypes . forEachIndexed { index , type ->
val chip = Chip ( requireContext ( ) )
val chip = Chip ( requireContext ( ) )
chip . id = index
chip . id = index
chip . text = requireContext ( ) . getString ( type . resId )
chip . text = requireContext ( ) . getString ( type . resId )