commit | 34c6f7af33de38554e8b9c42c8be9bc9e7f5791b | [log] [tgz] |
---|---|---|
author | Romain Guy <romainguy@google.com> | Tue May 09 08:27:40 2023 -0700 |
committer | Romain Guy <romainguy@google.com> | Tue May 09 15:42:47 2023 +0000 |
tree | 86d156774d78e22c1569e24f8c09a04f25866fd5 | |
parent | 0a00776e0ed9bd826b3fa289c8778daab590d108 [diff] |
Don't apply compositions twice A recent change was meant to avoid doing an addAll() on a collection but mistakingly did not comment out that line. RelNote: N/A Test: compose-runtime tests Change-Id: Ie64c91900541e39b0397e9c4141be92007291353
diff --git a/compose/runtime/runtime/src/commonMain/kotlin/androidx/compose/runtime/Recomposer.kt b/compose/runtime/runtime/src/commonMain/kotlin/androidx/compose/runtime/Recomposer.kt index b66eab9..faf8739 100644 --- a/compose/runtime/runtime/src/commonMain/kotlin/androidx/compose/runtime/Recomposer.kt +++ b/compose/runtime/runtime/src/commonMain/kotlin/androidx/compose/runtime/Recomposer.kt
@@ -614,7 +614,7 @@ try { // We could do toComplete += toApply but doing it like below // avoids unncessary allocations since toApply is a mutable list - toComplete += toApply + // toComplete += toApply toApply.fastForEach { composition -> toComplete.add(composition) }