mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-02-16 11:20:55 +01:00
adding a null check
This commit is contained in:
parent
25775255be
commit
55c30cafd8
@ -100,7 +100,7 @@ class MediaActionSound(private val context: Context) {
|
||||
|
||||
private fun loadSound(sound: SoundState): Int {
|
||||
var id = 0
|
||||
if (sound.mediaSound == null) {
|
||||
if (sound.mediaSound == null || soundPool == null) {
|
||||
return 0
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user