Commit 903fcbc
authored
Properly handle recycling of RecomposeHighlighterModifier (#510)
* Properly handle recycling of RecomposeHighlighterModifier
After migrating to be Node based, it's possible the Modifier node can be reused. For example, when scrolling in a LazyColumn the nodes of items scrolled off the viewport may be recycled and used with items scrolling into the viewport. When this occurs, the composition count needs to be reset. Otherwise, it may look like the item scrolling into the viewport has recomposed more than it actually has.
* Fix code style1 parent 70285ac commit 903fcbc
File tree
1 file changed
+5
-0
lines changed- compose/recomposehighlighter/src/main/java/com/example/android/compose/recomposehighlighter
1 file changed
+5
-0
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
92 | 97 | | |
93 | 98 | | |
94 | 99 | | |
| |||
0 commit comments