mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-06-05 22:19:17 +02:00
update timer and alarm sounds if the current selection has been deleted
This commit is contained in:
@ -90,6 +90,8 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
|
||||
|
||||
fun getAlarmWithId(id: Int) = getAlarms().firstOrNull { it.id == id }
|
||||
|
||||
fun getAlarmsWithUri(uri: String) = getAlarms().filter { it.soundUri == uri }
|
||||
|
||||
private fun fillAlarmContentValues(alarm: Alarm): ContentValues {
|
||||
return ContentValues().apply {
|
||||
put(COL_TIME_IN_MINUTES, alarm.timeInMinutes)
|
||||
|
Reference in New Issue
Block a user