Skip to content

Commit b76b7c8

Browse files
committed
fix: remove FLAG_AUDIBILITY_ENFORCED flag
Same issue as FossifyOrg/Clock#158 See: #97
1 parent 75820d7 commit b76b7c8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/main/kotlin/org/fossify/camera/helpers/MediaActionSound.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ class MediaActionSound(private val context: Context) {
5858
.setAudioAttributes(
5959
AudioAttributes.Builder()
6060
.setUsage(AudioAttributes.USAGE_ASSISTANCE_SONIFICATION)
61-
.setFlags(AudioAttributes.FLAG_AUDIBILITY_ENFORCED)
6261
.setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION)
6362
.build()
6463
).build()
@@ -101,7 +100,7 @@ class MediaActionSound(private val context: Context) {
101100
}
102101

103102
if (soundToBePlayed != null) {
104-
playWithSoundPool(soundToBePlayed!!)
103+
playWithSoundPool(soundToBePlayed)
105104
}
106105
break
107106
}

0 commit comments

Comments
 (0)