git.iko.soy/opencode-android
on master help sign in
Fix chat crash by using stable Long keys for DiffView produceState color params
15d51d8iko
app/src/main/java/soy/iko/opencode/ui/components/DiffView.kt+3−2
@@ -339,8 +339,9 @@ private fun rememberDiffRows(
339): DiffRows = produceState<DiffRows>(
339): DiffRows = produceState<DiffRows>(
340 DiffRows(emptyList(), 0),
340 DiffRows(emptyList(), 0),
341 diff, expanded, collapsedHunks,
341 diff, expanded, collapsedHunks,
342− addColor, removeColor, addText, removeText,
342+ addColor.value.toLong(), removeColor.value.toLong(),
343+ addText.value.toLong(), removeText.value.toLong(),
343− tertiary, onSurface, onSurfaceVariant,
344+ tertiary.value.toLong(), onSurface.value.toLong(), onSurfaceVariant.value.toLong(),
344) {
345) {
345 val result = withContext(Dispatchers.Default) {
346 val result = withContext(Dispatchers.Default) {
346 runCatchingCancellable {
347 runCatchingCancellable {