Skip to content

Instantly share code, notes, and snippets.

@januprasad
Last active February 17, 2020 15:15
Show Gist options
  • Save januprasad/0d67f88714240dce87ab29654b33eeea to your computer and use it in GitHub Desktop.
Save januprasad/0d67f88714240dce87ab29654b33eeea to your computer and use it in GitHub Desktop.
override fun onTimeSet(timePicker: TimePicker?, hour: Int, minute: Int) {
val calendar = Calendar.getInstance()
calendar.set(Calendar.HOUR_OF_DAY, hour)
calendar.set(Calendar.MINUTE, minute)
calendar.set(Calendar.SECOND, 0)
startAlarm(calendar)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment