fix(android): enforce single active player in chat timeline
Some checks failed
Android CI / android (push) Failing after 6m15s
Android Release / release (push) Failing after 6m4s
CI / test (push) Failing after 3m3s

This commit is contained in:
Codex
2026-03-10 21:10:05 +03:00
parent f8ed889170
commit 3c9b97e102

View File

@@ -763,6 +763,10 @@ fun ChatScreen(
},
onAudioPlaybackChanged = { playback ->
if (playback.isPlaying) {
val previous = topAudioStrip?.sourceId
if (!previous.isNullOrBlank() && previous != playback.sourceId) {
forceStopAudioSourceId = previous
}
topAudioStrip = playback
if (forceStopAudioSourceId == playback.sourceId) {
forceStopAudioSourceId = null