Fix OnLayoutChangeListener lambda parameter count
The lambda had 10 destructured parameters but OnLayoutChangeListener only passes 9 (view, left, top, right, bottom, oldLeft, oldTop, oldRight, oldBottom). Remove the extra placeholder. https://claude.ai/code/session_01Rp7ef1h3fKh6fhStcjqLJ5
This commit is contained in:
+1
-1
@@ -324,7 +324,7 @@ class BottomSheetView(
|
||||
val innerViewGroup = this.innerView as? ViewGroup ?: return
|
||||
val contentView = innerViewGroup.getChildAt(0) ?: return
|
||||
|
||||
val listener = View.OnLayoutChangeListener { _, _, top, _, bottom, _, _, oldTop, _, oldBottom ->
|
||||
val listener = View.OnLayoutChangeListener { _, _, top, _, bottom, _, oldTop, _, oldBottom ->
|
||||
val newHeight = bottom - top
|
||||
val oldHeight = oldBottom - oldTop
|
||||
if (newHeight != oldHeight && newHeight > 0 && (isOpen || isOpening) && !isClosing) {
|
||||
|
||||
Reference in New Issue
Block a user