fix(android): single jump per polling loop for detekt LoopWithTooManyJumpStatements
android / Build + lint + test (push) Successful in 4m0s

This commit is contained in:
2026-06-04 00:42:35 -04:00
parent c245b1ef0b
commit 41230b5afb
@@ -524,7 +524,7 @@ class PlayerController @Inject constructor(
val changed = current.isPlaying != effectiveIsPlaying || val changed = current.isPlaying != effectiveIsPlaying ||
current.positionMs != newPos || current.positionMs != newPos ||
current.durationMs != newDur current.durationMs != newDur
if (!changed) continue if (changed) {
uiStateInternal.value = current.copy( uiStateInternal.value = current.copy(
isPlaying = effectiveIsPlaying, isPlaying = effectiveIsPlaying,
positionMs = newPos, positionMs = newPos,
@@ -534,6 +534,7 @@ class PlayerController @Inject constructor(
} }
} }
} }
}
// ── Remote position interpolation state ────────────────────────────── // ── Remote position interpolation state ──────────────────────────────
// remoteState.positionMs is only refreshed by ForwardingPlayer's 1Hz // remoteState.positionMs is only refreshed by ForwardingPlayer's 1Hz