fix(android): UPnP volume cache keyed to active route id
android / Build + lint + test (push) Has been cancelled

This commit is contained in:
2026-06-03 17:52:00 -04:00
parent 29309d9bfb
commit 81794e2475
@@ -751,7 +751,7 @@ private fun TransportRow(
@Composable
private fun rememberUpnpVolumeKeyHandler(activeUpnp: ActiveUpnp?): (KeyEvent) -> Boolean {
val scope = rememberCoroutineScope()
val cache = remember { VolumeCache() }
val cache = remember(activeUpnp?.routeId) { VolumeCache() }
return remember(activeUpnp) {
handler@{ event: KeyEvent ->
val rc = activeUpnp?.rendering ?: return@handler false