Skip to content

Commit 3636cb7

Browse files
authored
fix: prevent cached preference after reboot (#373)
Refs: #372
1 parent 9130626 commit 3636cb7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Fixed
9+
- Fixed an issue where sound/vibration preferences were ignored after reboot ([#372])
810

911
## [1.8.0] - 2025-12-29
1012
### Added
@@ -150,6 +152,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
150152
[#274]: https://github.com/FossifyOrg/Keyboard/issues/274
151153
[#335]: https://github.com/FossifyOrg/Keyboard/issues/335
152154
[#356]: https://github.com/FossifyOrg/Keyboard/issues/356
155+
[#372]: https://github.com/FossifyOrg/Keyboard/issues/372
153156

154157
[Unreleased]: https://github.com/FossifyOrg/Keyboard/compare/1.8.0...HEAD
155158
[1.8.0]: https://github.com/FossifyOrg/Keyboard/compare/1.7.0...1.8.0

app/src/main/kotlin/org/fossify/keyboard/helpers/KeyboardFeedbackManager.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ import org.fossify.keyboard.extensions.safeStorageContext
1414
*/
1515
class KeyboardFeedbackManager(private val context: Context) {
1616

17-
private val config = context.safeStorageContext.config
17+
private val config: Config
18+
get() = context.safeStorageContext.config
19+
1820
private val audioManager by lazy {
1921
context.getSystemService(Context.AUDIO_SERVICE) as AudioManager
2022
}

0 commit comments

Comments
 (0)