mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2024-12-14 09:24:01 +01:00
update commons to 3.17.14
This commit is contained in:
parent
f24104fbdd
commit
d4f6531b13
@ -41,7 +41,7 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.simplemobiletools:commons:3.17.13'
|
||||
implementation 'com.simplemobiletools:commons:3.17.14'
|
||||
implementation 'com.facebook.stetho:stetho:1.5.0'
|
||||
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
|
||||
implementation 'com.shawnlin:number-picker:2.4.6'
|
||||
|
@ -31,11 +31,12 @@ class EditAlarmDialog(val activity: SimpleActivity, val alarm: Alarm, val callba
|
||||
edit_alarm_sound.colorLeftDrawable(textColor)
|
||||
edit_alarm_sound.text = alarm.soundTitle
|
||||
edit_alarm_sound.setOnClickListener {
|
||||
SelectAlarmSoundDialog(activity, alarm.soundUri, AudioManager.STREAM_ALARM, PICK_AUDIO_FILE_INTENT_ID, ALARM_SOUND_TYPE_ALARM, onAlarmPicked = {
|
||||
if (it != null) {
|
||||
updateSelectedAlarmSound(it)
|
||||
}
|
||||
}, onAlarmSoundDeleted = {
|
||||
SelectAlarmSoundDialog(activity, alarm.soundUri, AudioManager.STREAM_ALARM, PICK_AUDIO_FILE_INTENT_ID, ALARM_SOUND_TYPE_ALARM, true,
|
||||
onAlarmPicked = {
|
||||
if (it != null) {
|
||||
updateSelectedAlarmSound(it)
|
||||
}
|
||||
}, onAlarmSoundDeleted = {
|
||||
if (alarm.soundUri == it.uri) {
|
||||
val defaultAlarm = context.getDefaultAlarmSound(ALARM_SOUND_TYPE_ALARM)
|
||||
updateSelectedAlarmSound(defaultAlarm)
|
||||
|
@ -69,7 +69,7 @@ class TimerFragment : Fragment() {
|
||||
|
||||
timer_sound.setOnClickListener {
|
||||
SelectAlarmSoundDialog(activity as SimpleActivity, config.timerSoundUri, AudioManager.STREAM_SYSTEM, PICK_AUDIO_FILE_INTENT_ID,
|
||||
ALARM_SOUND_TYPE_ALARM, onAlarmPicked = {
|
||||
ALARM_SOUND_TYPE_ALARM, true, onAlarmPicked = {
|
||||
if (it != null) {
|
||||
updateAlarmSound(it)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user