Skip to content

Commit

Permalink
Rename SchedulingDialog#newInstance to newSchedule
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Sep 20, 2024
1 parent 310cb60 commit e43ed5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ class TEIDataFragment : FragmentGlobalAbstract(), TEIDataContracts.View {
override fun displayScheduleEvent(programStage: ProgramStage?, showYesNoOptions: Boolean) {
val model = dashboardViewModel.dashboardModel.value
if (model is DashboardEnrollmentModel) {
SchedulingDialog.newInstance(
SchedulingDialog.newSchedule(
enrollment = model.currentEnrollment,
programStages = if (programStage != null) {
listOf(programStage)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ import java.util.Date
import javax.inject.Inject

class SchedulingDialog : BottomSheetDialogFragment() {

companion object {
const val SCHEDULING_DIALOG = "SCHEDULING_DIALOG"
const val SCHEDULING_DIALOG_RESULT = "SCHEDULING_DIALOG_RESULT"
const val PROGRAM_STAGE_UID = "PROGRAM_STAGE_UID"

fun newInstance(
fun newSchedule(
enrollment: Enrollment,
programStages: List<ProgramStage>,
showYesNoOptions: Boolean,
Expand Down

0 comments on commit e43ed5c

Please sign in to comment.