mirror of
https://github.com/FossifyOrg/Camera.git
synced 2026-06-11 17:47:40 -04:00
adding a null check
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user