Skip to content

Commit

Permalink
fix code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
Balcan committed Dec 10, 2024
1 parent d5f2187 commit 20a3069
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class ScheduledEventActivity : ActivityGlobalAbstract(), ScheduledEventContract.
),
onSecondaryButtonClicked = {
},
onMainButtonClicked = { bottomSheetDialog ->
onMainButtonClicked = { _ ->
},
showDivider = true,
content = { bottomSheetDialog, scrollState ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ class EventDetailsFragment : FragmentGlobalAbstract() {
),
onSecondaryButtonClicked = {
},
onMainButtonClicked = { bottomSheetDialog ->
onMainButtonClicked = { _ ->
},
showDivider = true,
content = { bottomSheetDialog, scrollState ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,6 @@ class GetPeriodLabel(

PeriodType.SixMonthly,
PeriodType.SixMonthlyApril,
->
formattedDate = FROM_TO_LABEL.format(
SimpleDateFormat(MONTH_YEAR_FULL_FORMAT, locale).format(periodStartDate),
SimpleDateFormat(MONTH_YEAR_FULL_FORMAT, locale).format(periodEndDate),
)

PeriodType.FinancialApril,
PeriodType.FinancialJuly,
PeriodType.FinancialOct,
Expand Down
2 changes: 1 addition & 1 deletion form/src/main/java/org/dhis2/form/ui/FormView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ class FormView : Fragment() {
),
onSecondaryButtonClicked = {
},
onMainButtonClicked = { bottomSheetDialog ->
onMainButtonClicked = { _ ->
},
showDivider = true,
content = { bottomSheetDialog, scrollState ->
Expand Down

0 comments on commit 20a3069

Please sign in to comment.