diff --git a/CHANGELOG.md b/CHANGELOG.md index aa817189..d3a633f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- Fixed loud shutter sound on some devices ([#97]) + ## [1.0.2] - 2025-05-28 ### Changed @@ -36,3 +40,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [1.0.1]: https://github.com/FossifyOrg/Camera/compare/1.0.0...1.0.1 [1.0.0]: https://github.com/FossifyOrg/Camera/releases/tag/1.0.0 +[#97]: https://github.com/FossifyOrg/Camera/issues/97 diff --git a/app/src/main/kotlin/org/fossify/camera/helpers/MediaActionSound.kt b/app/src/main/kotlin/org/fossify/camera/helpers/MediaActionSound.kt index 9cad9d8f..60173870 100644 --- a/app/src/main/kotlin/org/fossify/camera/helpers/MediaActionSound.kt +++ b/app/src/main/kotlin/org/fossify/camera/helpers/MediaActionSound.kt @@ -58,7 +58,6 @@ class MediaActionSound(private val context: Context) { .setAudioAttributes( AudioAttributes.Builder() .setUsage(AudioAttributes.USAGE_ASSISTANCE_SONIFICATION) - .setFlags(AudioAttributes.FLAG_AUDIBILITY_ENFORCED) .setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION) .build() ).build() @@ -101,7 +100,7 @@ class MediaActionSound(private val context: Context) { } if (soundToBePlayed != null) { - playWithSoundPool(soundToBePlayed!!) + playWithSoundPool(soundToBePlayed) } break }