We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a811920 commit 4858b43Copy full SHA for 4858b43
nested-scroll-compat/src/main/java/com/arc/fast/view/FastNestedScrollCompat.kt
@@ -35,7 +35,7 @@ open class FastNestedScrollCompat @JvmOverloads constructor(
35
if (orientation != Orientation.Auto) return orientation
36
val child = child ?: return Orientation.Vertical
37
if (child is RecyclerView) {
38
- when (val layoutManager = child.layoutManager) {
+ return when (val layoutManager = child.layoutManager) {
39
is LinearLayoutManager -> layoutManager.orientation.toOrientation
40
is StaggeredGridLayoutManager -> layoutManager.orientation.toOrientation
41
else -> Orientation.Vertical
0 commit comments