make sure the ringtones at the selector dialog loop

This commit is contained in:
tibbi 2018-03-14 13:51:47 +01:00
parent f1fe2cf1fa
commit f2253f80c4
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ class SelectAlarmSoundDialog(val activity: SimpleActivity, val currentUri: Strin
mediaPlayer = MediaPlayer().apply {
setAudioStreamType(audioStream)
setDataSource(context, Uri.parse(alarmSound.uri))
isLooping = true
prepare()
start()
}