mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-02-28 09:37:38 +01: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"
|
||||
}
|
||||
|
||||
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() {
|
||||
dbHelper.getEnabledAlarms().forEach {
|
||||
|
Loading…
x
Reference in New Issue
Block a user