Skip to content

Commit 4858b43

Browse files
author
liuzhentao
committed
修复FastNestedScrollCompat BUG
1 parent a811920 commit 4858b43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nested-scroll-compat/src/main/java/com/arc/fast/view/FastNestedScrollCompat.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ open class FastNestedScrollCompat @JvmOverloads constructor(
3535
if (orientation != Orientation.Auto) return orientation
3636
val child = child ?: return Orientation.Vertical
3737
if (child is RecyclerView) {
38-
when (val layoutManager = child.layoutManager) {
38+
return when (val layoutManager = child.layoutManager) {
3939
is LinearLayoutManager -> layoutManager.orientation.toOrientation
4040
is StaggeredGridLayoutManager -> layoutManager.orientation.toOrientation
4141
else -> Orientation.Vertical

0 commit comments

Comments
 (0)