Skip to content

Commit a56b587

Browse files
authored
fix: remove FLAG_AUDIBILITY_ENFORCED flag (#98)
* fix: remove `FLAG_AUDIBILITY_ENFORCED` flag Same issue as FossifyOrg/Clock#158 See: #97 * docs: update changelog
1 parent 75820d7 commit a56b587

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- Fixed loud shutter sound on some devices ([#97])
13+
1014
## [1.0.2] - 2025-05-28
1115

1216
### Changed
@@ -36,3 +40,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3640
[1.0.1]: https://github.com/FossifyOrg/Camera/compare/1.0.0...1.0.1
3741
[1.0.0]: https://github.com/FossifyOrg/Camera/releases/tag/1.0.0
3842

43+
[#97]: https://github.com/FossifyOrg/Camera/issues/97

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)