Skip to content
Snippets Groups Projects
Unverified Commit 1baeff05 authored by axelherbstreith's avatar axelherbstreith Committed by GitHub
Browse files

Duration Picker Minute State (DEV) (#2467)

* adapted initial minute state

* lint
parent 9acdd92a
No related branches found
No related tags found
No related merge requests found
......@@ -45,8 +45,8 @@ class ContactDiaryDurationPickerFragment : DialogFragment() {
var duration = requireArguments().getString(DURATION_ARGUMENT_KEY)!!.split(":").toTypedArray()
if (duration.size < 2) duration = arrayOf("00", "00")
hours.value = if (hoursArray.size > duration[0].toInt()) hoursArray.indexOf(duration[0]) else 0
minutes.value = if (minutesArray.size > duration[1].toInt()) minutesArray.indexOf(duration[1]) else 0
hours.value = hoursArray.indexOf(duration[0])
minutes.value = minutesArray.indexOf(duration[1])
cancelButton.setOnClickListener { dismiss() }
okButton.setOnClickListener {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment