Skip to content

Commit

Permalink
remove execute lambda from collection cell layout
Browse files Browse the repository at this point in the history
Summary: This contributes about 500B to the compressed APK. Let's use a regular method here

Reviewed By: nicous

Differential Revision: D65226586

fbshipit-source-id: 5e02a4f34aac3da25d67944be34052bad87332bc
  • Loading branch information
Daniel Famakin authored and facebook-github-bot committed Oct 31, 2024
1 parent d4e82f9 commit ad2e773
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ value class SizeConstraints internal constructor(val encodedValue: Long) {

/** Creates [SizeConstraints] from the provided width and height [View.MeasureSpec]s. */
@JvmStatic
@JvmName("fromMeasureSpecs")
fun fromMeasureSpecs(widthSpec: Int, heightSpec: Int): SizeConstraints {
return SizeConstraints(encodeMeasureSpecs(widthSpec = widthSpec, heightSpec = heightSpec))
}
Expand Down

0 comments on commit ad2e773

Please sign in to comment.