Adds missing "this"

hh
Laurent 6 years ago
parent e244158db4
commit f7095db30c
  1. 10
      app/src/main/java/net/pokeranalytics/android/ui/fragment/report/ProgressReportFragment.kt

@ -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())

Loading…
Cancel
Save