Skip to content

Commit

Permalink
refactor: Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Feb 3, 2025
1 parent 8329a95 commit 11abdd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ open class SelectDateAndTimeForScheduledDraftDialog @Inject constructor(
val hour: Int = timePicker!!.hour
val minute: Int = timePicker!!.minute

selectedDate = selectedDate.setHour(hour)
.setMinute(minute)
selectedDate = selectedDate.setHour(hour).setMinute(minute)

binding.timeField.setText(selectedDate.format(FORMAT_DATE_HOUR_MINUTE))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class ScheduleSendBottomSheetDialog @Inject constructor() : ActionsBottomSheetDi
context,
date = Date(lastSelectedScheduleEpoch),
format = FORMAT_DATE_DAY_MONTH,
)
),
)
}
}
Expand Down

0 comments on commit 11abdd9

Please sign in to comment.