|
|
|
|
@ -38,10 +38,16 @@ abstract class AbstractReportFragment : DataManagerFragment() { |
|
|
|
|
super.onCreate(savedInstanceState) |
|
|
|
|
|
|
|
|
|
this.liveDataType = LiveData.REPORT_SETUP |
|
|
|
|
this.saveButtonShouldAppear = this._selectedReport.options.userGenerated |
|
|
|
|
this.deleteButtonShouldAppear = (this.primaryKey != null) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
override fun onStart() { |
|
|
|
|
super.onStart() |
|
|
|
|
|
|
|
|
|
// we don't want to use this._selectedReport before onActivityCreated could initialize the variable if necessary |
|
|
|
|
this.saveButtonShouldAppear = this._selectedReport.options.userGenerated |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
override fun onActivityCreated(savedInstanceState: Bundle?) { |
|
|
|
|
super.onActivityCreated(savedInstanceState) |
|
|
|
|
|
|
|
|
|
|