mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-06-27 09:02:59 +02:00
minor code style edit
This commit is contained in:
@ -103,17 +103,17 @@ class MediaActionSound(private val context: Context) {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
when (val mediaSound = sound.mediaSound!!) {
|
when (sound.mediaSound) {
|
||||||
is MediaSound.ManufacturerSound -> {
|
is MediaSound.ManufacturerSound -> {
|
||||||
for (soundDir in SOUND_DIRS) {
|
for (soundDir in SOUND_DIRS) {
|
||||||
val soundPath = soundDir + mediaSound.fileName
|
val soundPath = soundDir + sound.mediaSound.fileName
|
||||||
mediaSound.path = soundPath
|
sound.mediaSound.path = soundPath
|
||||||
id = soundPool!!.load(soundPath, 1)
|
id = soundPool!!.load(soundPath, 1)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
is MediaSound.RawResSound -> {
|
is MediaSound.RawResSound -> {
|
||||||
id = soundPool!!.load(context, mediaSound.resId, 1)
|
id = soundPool!!.load(context, sound.mediaSound.resId, 1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user