mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-01-30 02:14:52 +01:00
disable looping at alarm sound preview
This commit is contained in:
parent
2e4b2f4ddb
commit
a7dd568793
@ -46,7 +46,7 @@ ext {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.simplemobiletools:commons:3.17.13'
|
||||
implementation 'com.simplemobiletools:commons:3.17.14'
|
||||
implementation 'joda-time:joda-time:2.9.9'
|
||||
implementation 'com.facebook.stetho:stetho:1.5.0'
|
||||
implementation 'com.android.support:multidex:1.0.3'
|
||||
|
@ -278,11 +278,12 @@ class SettingsActivity : SimpleActivity() {
|
||||
settings_reminder_sound.text = config.reminderSoundTitle
|
||||
|
||||
settings_reminder_sound_holder.setOnClickListener {
|
||||
SelectAlarmSoundDialog(this, config.reminderSoundUri, AudioManager.STREAM_NOTIFICATION, GET_RINGTONE_URI, ALARM_SOUND_TYPE_NOTIFICATION, onAlarmPicked = {
|
||||
if (it != null) {
|
||||
updateReminderSound(it)
|
||||
}
|
||||
}, onAlarmSoundDeleted = {
|
||||
SelectAlarmSoundDialog(this, config.reminderSoundUri, AudioManager.STREAM_NOTIFICATION, GET_RINGTONE_URI, ALARM_SOUND_TYPE_NOTIFICATION, false,
|
||||
onAlarmPicked = {
|
||||
if (it != null) {
|
||||
updateReminderSound(it)
|
||||
}
|
||||
}, onAlarmSoundDeleted = {
|
||||
if (it.uri == config.reminderSoundUri) {
|
||||
val defaultAlarm = getDefaultAlarmSound(ALARM_SOUND_TYPE_NOTIFICATION)
|
||||
updateReminderSound(defaultAlarm)
|
||||
|
Loading…
x
Reference in New Issue
Block a user