Matthias Nott
2026-06-11 d9227bf2860a6f23ab89d8e7e0d7a9bf448d0adf
refs
author Matthias Nott <mnott@mnsoft.org>
Thursday, June 11, 2026 09:50 +0200
committer Matthias Nott <mnott@mnsoft.org>
Thursday, June 11, 2026 09:50 +0200
commitd9227bf2860a6f23ab89d8e7e0d7a9bf448d0adf
tree 27699e0c0ee01ee242e785a70a7ce256236b36ef tree | zip | gz
parent e74303c9bed248d6dd3f0440223c1edd297eb4e9 view | diff
fix(audio): don't treat AppLifecycleState.inactive as backgrounded

inactive is a transient state — on Android it fires during MQTT push wake-up,
system dialogs, and app-switcher previews while the app is still visible. By
flipping _isBackgrounded=true on inactive, the auto-play gate in
_handleIncomingVoice silently skipped incoming voice messages on Android even
when the user was viewing the matching session. Only paused/detached should
mark backgrounded; leave inactive alone so the real edge governs.
1 files modified
changed files
lib/services/audio_service.dart diff | view | blame | history