mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-04-04 13:51:08 +02:00
update commons to 3.17.14
This commit is contained in:
parent
f24104fbdd
commit
d4f6531b13
@ -41,7 +41,7 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
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.facebook.stetho:stetho:1.5.0'
|
||||||
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
|
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
|
||||||
implementation 'com.shawnlin:number-picker:2.4.6'
|
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.colorLeftDrawable(textColor)
|
||||||
edit_alarm_sound.text = alarm.soundTitle
|
edit_alarm_sound.text = alarm.soundTitle
|
||||||
edit_alarm_sound.setOnClickListener {
|
edit_alarm_sound.setOnClickListener {
|
||||||
SelectAlarmSoundDialog(activity, alarm.soundUri, AudioManager.STREAM_ALARM, PICK_AUDIO_FILE_INTENT_ID, ALARM_SOUND_TYPE_ALARM, onAlarmPicked = {
|
SelectAlarmSoundDialog(activity, alarm.soundUri, AudioManager.STREAM_ALARM, PICK_AUDIO_FILE_INTENT_ID, ALARM_SOUND_TYPE_ALARM, true,
|
||||||
if (it != null) {
|
onAlarmPicked = {
|
||||||
updateSelectedAlarmSound(it)
|
if (it != null) {
|
||||||
}
|
updateSelectedAlarmSound(it)
|
||||||
}, onAlarmSoundDeleted = {
|
}
|
||||||
|
}, onAlarmSoundDeleted = {
|
||||||
if (alarm.soundUri == it.uri) {
|
if (alarm.soundUri == it.uri) {
|
||||||
val defaultAlarm = context.getDefaultAlarmSound(ALARM_SOUND_TYPE_ALARM)
|
val defaultAlarm = context.getDefaultAlarmSound(ALARM_SOUND_TYPE_ALARM)
|
||||||
updateSelectedAlarmSound(defaultAlarm)
|
updateSelectedAlarmSound(defaultAlarm)
|
||||||
|
@ -69,7 +69,7 @@ class TimerFragment : Fragment() {
|
|||||||
|
|
||||||
timer_sound.setOnClickListener {
|
timer_sound.setOnClickListener {
|
||||||
SelectAlarmSoundDialog(activity as SimpleActivity, config.timerSoundUri, AudioManager.STREAM_SYSTEM, PICK_AUDIO_FILE_INTENT_ID,
|
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) {
|
if (it != null) {
|
||||||
updateAlarmSound(it)
|
updateAlarmSound(it)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user