Commit 3dcbd39
fix(chat): react to MediaController disconnection in ChatActivity
Add a MediaController.Listener to detect onDisconnected, e.g. when the
VoiceMessageMediaService/MediaSession dies unexpectedly while the chat
is still visible. Without this, mediaController would be left as a
stale reference and the UI (play button, seekbar polling) could get
stuck instead of resetting.
Assisted-by: Claude Code:claude-sonnet-5
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>1 parent 01ce277 commit 3dcbd39
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1400 | 1400 | | |
1401 | 1401 | | |
1402 | 1402 | | |
1403 | | - | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
1404 | 1412 | | |
1405 | 1413 | | |
1406 | 1414 | | |
| |||
0 commit comments