Skip to content

Commit cfd3698

Browse files
committed
minor code style edit
1 parent 7817dcd commit cfd3698

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/src/main/kotlin/com/simplemobiletools/camera/helpers/MediaActionSound.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,17 +103,17 @@ class MediaActionSound(private val context: Context) {
103103
return 0
104104
}
105105

106-
when (val mediaSound = sound.mediaSound!!) {
106+
when (sound.mediaSound) {
107107
is MediaSound.ManufacturerSound -> {
108108
for (soundDir in SOUND_DIRS) {
109-
val soundPath = soundDir + mediaSound.fileName
110-
mediaSound.path = soundPath
109+
val soundPath = soundDir + sound.mediaSound.fileName
110+
sound.mediaSound.path = soundPath
111111
id = soundPool!!.load(soundPath, 1)
112112
break
113113
}
114114
}
115115
is MediaSound.RawResSound -> {
116-
id = soundPool!!.load(context, mediaSound.resId, 1)
116+
id = soundPool!!.load(context, sound.mediaSound.resId, 1)
117117
}
118118
}
119119

0 commit comments

Comments
 (0)