enable alarm by default after creation/edit

This commit is contained in:
tibbi 2020-11-05 11:30:30 +01:00
parent b0652399ea
commit db5e38d5e3
2 changed files with 2 additions and 1 deletions

View File

@ -110,6 +110,7 @@ class EditAlarmDialog(val activity: SimpleActivity, val alarm: Alarm, val callba
}
alarm.label = view.edit_alarm_label.value
alarm.isEnabled = true
var alarmId = alarm.id
if (alarm.id == 0) {

View File

@ -336,7 +336,7 @@ fun Context.getHideAlarmPendingIntent(alarm: Alarm): PendingIntent {
@SuppressLint("NewApi")
fun Context.getAlarmNotification(pendingIntent: PendingIntent, alarm: Alarm): Notification {
var soundUri = alarm.soundUri
val soundUri = alarm.soundUri
if (soundUri != SILENT) {
grantReadUriPermission(soundUri)
}