|
|
|
@ -82,6 +82,7 @@ class ReportCreationFragment : RealmFragment(), RowRepresentableDataSource, RowR |
|
|
|
setDisplayHomeAsUpEnabled(true) |
|
|
|
setDisplayHomeAsUpEnabled(true) |
|
|
|
|
|
|
|
|
|
|
|
this.optionsAdapter = RowRepresentableAdapter(this, this) |
|
|
|
this.optionsAdapter = RowRepresentableAdapter(this, this) |
|
|
|
|
|
|
|
this.optionsAdapter.setHasStableIds(true) |
|
|
|
|
|
|
|
|
|
|
|
val viewManager = LinearLayoutManager(requireContext()) |
|
|
|
val viewManager = LinearLayoutManager(requireContext()) |
|
|
|
recyclerView.apply { |
|
|
|
recyclerView.apply { |
|
|
|
@ -179,7 +180,7 @@ class ReportCreationFragment : RealmFragment(), RowRepresentableDataSource, RowR |
|
|
|
this.updateUIWithCurrentStep() |
|
|
|
this.updateUIWithCurrentStep() |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.next.isEnabled = this.assistant.nextEnabled |
|
|
|
this.next.isEnabled = this.assistant.nextEnabled |
|
|
|
this.optionsAdapter.refreshRow(row) |
|
|
|
this.optionsAdapter.notifyDataSetChanged() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
@ -256,6 +257,7 @@ class Assistant { |
|
|
|
return when (this.step) { |
|
|
|
return when (this.step) { |
|
|
|
Step.STAT -> this.stats.contains(row as Stat) |
|
|
|
Step.STAT -> this.stats.contains(row as Stat) |
|
|
|
Step.COMPARATOR -> this.comparators.contains(row as Criteria) |
|
|
|
Step.COMPARATOR -> this.comparators.contains(row as Criteria) |
|
|
|
|
|
|
|
Step.FILTER -> this.filter == row |
|
|
|
else -> false |
|
|
|
else -> false |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|