Skip to content
This repository was archived by the owner on Dec 27, 2024. It is now read-only.

Commit 65039bb

Browse files
authored
Merge pull request #211 from androidx/fix_hashcode_comparison
Fix scope helpers' hashcode comparison
2 parents 10dec14 + a52f4bd commit 65039bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

constraintlayout/compose/src/main/java/androidx/constraintlayout/compose/ConstraintLayout.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ inline fun ConstraintLayout(
8080
modifier = modifier,
8181
measurePolicy = measurePolicy,
8282
content = {
83-
val previousHelpersHashCode = scope.hashCode()
83+
val previousHelpersHashCode = scope.helpersHashCode
8484
scope.reset()
8585
scope.content()
86-
if (scope.hashCode() != previousHelpersHashCode) {
86+
if (scope.helpersHashCode != previousHelpersHashCode) {
8787
// If the helpers have changed, we need to request remeasurement. To achieve this,
8888
// we are changing this boolean state that is read during measurement.
8989
remeasureRequesterState.value = !remeasureRequesterState.value

0 commit comments

Comments
 (0)