Skip to content

Commit 433fdbc

Browse files
committed
replace deprecated max function
1 parent 371d0fb commit 433fdbc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • sequencelayout/src/main/java/com/transferwise/sequencelayout

sequencelayout/src/main/java/com/transferwise/sequencelayout/SequenceStep.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public class SequenceStep(context: Context?, attrs: AttributeSet?)
240240
}
241241

242242
private fun verticallyCenter(vararg views: View) {
243-
val maxHeight = views.map(::getViewHeight).max() ?: 0
243+
val maxHeight = views.map(::getViewHeight).maxOrNull() ?: 0
244244

245245
views.forEach { view ->
246246
val height = getViewHeight(view)

0 commit comments

Comments
 (0)