Android toast displaying incorrect String value
When setting a switch as off the user should receive a toast saying "alarm set for 00.40" for example, but for some reason the "alarm set for" has been swapped out for a string of numbers as below.
https://i.stack.imgur.com/sMyLs.png▾
The code:
override fun setSwitchOn(alarm: Alarm) {
val toastTime = formatTime(alarm)
val alarmManager = AlarmManager(
alarm.id,
alarm.hour,...