|
|
|
@ -47,6 +47,11 @@ class ReportCreationFragment : RealmFragment(), RowRepresentableDataSource, RowR |
|
|
|
super.onActivityResult(requestCode, resultCode, data) |
|
|
|
super.onActivityResult(requestCode, resultCode, data) |
|
|
|
if (requestCode == FilterActivityRequestCode.CREATE_FILTER.ordinal && resultCode == Activity.RESULT_OK) { |
|
|
|
if (requestCode == FilterActivityRequestCode.CREATE_FILTER.ordinal && resultCode == Activity.RESULT_OK) { |
|
|
|
this.updateUIWithCurrentStep() |
|
|
|
this.updateUIWithCurrentStep() |
|
|
|
|
|
|
|
val selectedFilterId = data?.getStringExtra(FiltersActivity.IntentKey.FILTER_ID.keyName) |
|
|
|
|
|
|
|
val filterPosition = currentRows.indexOfFirst { it is Filter && it.id == selectedFilterId } |
|
|
|
|
|
|
|
if (filterPosition != -1) { |
|
|
|
|
|
|
|
onRowSelected(filterPosition, currentRows[filterPosition]) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|