Skip to content

Commit

Permalink
Merge pull request #1331 from google/av/early-return-in-placement
Browse files Browse the repository at this point in the history
[Adaptive] Use early-return in placement
  • Loading branch information
bentrengrove committed Sep 10, 2022
2 parents 00dfef5 + c5ab2bf commit 344981d
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -132,9 +132,7 @@ internal fun TwoPane(
val splitResult = strategy.calculateSplitResult(
density = density,
layoutDirection = layoutDirection,
layoutCoordinates = checkNotNull(coordinates) {
"TwoPane does not support the use of alignment lines!"
}
layoutCoordinates = coordinates ?: return@layout
)

val gapOrientation = splitResult.gapOrientation
Expand Down

0 comments on commit 344981d

Please sign in to comment.