Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert a WA - Fix ArrayIndexOutOfBoundsException on iOS and Wasm #1679

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -658,9 +658,7 @@ public class KeyframesSpec<T>(public val config: KeyframesSpecConfig<T>) :
timestamps.add(config.durationMillis)
}

//the reason is https://youtrack.jetbrains.com/issue/KT-70005
//it was fixed in androidx.collection:collection:1.5.0-alpha01, but we redirect on 1.4.0 yet
if (timestamps.isNotEmpty()) timestamps.sort()
timestamps.sort()

return VectorizedKeyframesSpec(
timestamps = timestamps,
Expand Down Expand Up @@ -775,9 +773,7 @@ public class KeyframesWithSplineSpec<T>(
timestamps.add(config.durationMillis)
}

//the reason is https://youtrack.jetbrains.com/issue/KT-70005
//it was fixed in androidx.collection:collection:1.5.0-alpha01, but we redirect on 1.4.0 yet
if (timestamps.isNotEmpty()) timestamps.sort()
timestamps.sort()
return VectorizedMonoSplineKeyframesSpec(
timestamps = timestamps,
keyframes = timeToVectorMap,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,7 @@ internal constructor(
times.add(durationMillis)
}

//the reason is https://youtrack.jetbrains.com/issue/KT-70005
//it was fixed in androidx.collection:collection:1.5.0-alpha01, but we redirect on 1.4.0 yet
if (times.isNotEmpty()) times.sort()
times.sort()
return@run times
},
keyframes =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -588,9 +588,7 @@ private fun List<PaneExpansionAnchor>.toPositions(
forEachIndexed { index, anchor ->
anchors.add(IndexedAnchorPosition(anchor.positionIn(maxExpansionWidth, density), index))
}
//the reason is https://youtrack.jetbrains.com/issue/KT-70005
//it was fixed in androidx.collection:collection:1.5.0-alpha01, but we redirect on 1.4.0 yet
if (!anchors.isEmpty()) anchors.sort()
anchors.sort()
return anchors
}

Expand Down
Loading