set time picker to 12 hours clock

This commit is contained in:
z3r0c00l-2k 2019-05-25 11:12:37 +05:30
parent 8c53cee940
commit 0fe76623f5
2 changed files with 4 additions and 4 deletions

View file

@ -64,7 +64,7 @@ class InitUserInfoActivity : AppCompatActivity() {
etWakeUpTime.editText!!.setText(
String.format("%02d:%02d", selectedHour, selectedMinute)
)
}, calendar.get(Calendar.HOUR_OF_DAY), calendar.get(Calendar.MINUTE), true
}, calendar.get(Calendar.HOUR_OF_DAY), calendar.get(Calendar.MINUTE), false
)
mTimePicker.setTitle("Select Wakeup Time")
mTimePicker.show()
@ -88,7 +88,7 @@ class InitUserInfoActivity : AppCompatActivity() {
etSleepTime.editText!!.setText(
String.format("%02d:%02d", selectedHour, selectedMinute)
)
}, calendar.get(Calendar.HOUR_OF_DAY), calendar.get(Calendar.MINUTE), true
}, calendar.get(Calendar.HOUR_OF_DAY), calendar.get(Calendar.MINUTE), false
)
mTimePicker.setTitle("Select Sleeping Time")
mTimePicker.show()

View file

@ -127,7 +127,7 @@ class BottomSheetFragment(val mCtx: Context) : BottomSheetDialogFragment() {
etWakeUpTime.editText!!.setText(
String.format("%02d:%02d", selectedHour, selectedMinute)
)
}, calendar.get(Calendar.HOUR_OF_DAY), calendar.get(Calendar.MINUTE), true
}, calendar.get(Calendar.HOUR_OF_DAY), calendar.get(Calendar.MINUTE), false
)
mTimePicker.setTitle("Select Wakeup Time")
mTimePicker.show()
@ -152,7 +152,7 @@ class BottomSheetFragment(val mCtx: Context) : BottomSheetDialogFragment() {
etSleepTime.editText!!.setText(
String.format("%02d:%02d", selectedHour, selectedMinute)
)
}, calendar.get(Calendar.HOUR_OF_DAY), calendar.get(Calendar.MINUTE), true
}, calendar.get(Calendar.HOUR_OF_DAY), calendar.get(Calendar.MINUTE), false
)
mTimePicker.setTitle("Select Sleeping Time")
mTimePicker.show()