mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-04-03 05:11:09 +02:00
enable alarm by default after creation/edit
This commit is contained in:
parent
b0652399ea
commit
db5e38d5e3
@ -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) {
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user