set time picker to 12 hours clock
This commit is contained in:
parent
8c53cee940
commit
0fe76623f5
2 changed files with 4 additions and 4 deletions
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue