mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-04-25 15:38:55 +02:00
handle null getNextAlarm()
This commit is contained in:
parent
579a4057c6
commit
c2cabfa84f
@ -210,7 +210,7 @@ fun Context.formatTo12HourFormat(showSeconds: Boolean, hours: Int, minutes: Int,
|
|||||||
return "${formatTime(showSeconds, false, newHours, minutes, seconds)} $appendable"
|
return "${formatTime(showSeconds, false, newHours, minutes, seconds)} $appendable"
|
||||||
}
|
}
|
||||||
|
|
||||||
fun Context.getNextAlarm() = Settings.System.getString(contentResolver, Settings.System.NEXT_ALARM_FORMATTED)
|
fun Context.getNextAlarm() = Settings.System.getString(contentResolver, Settings.System.NEXT_ALARM_FORMATTED) ?: ""
|
||||||
|
|
||||||
fun Context.rescheduleEnabledAlarms() {
|
fun Context.rescheduleEnabledAlarms() {
|
||||||
dbHelper.getEnabledAlarms().forEach {
|
dbHelper.getEnabledAlarms().forEach {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user