File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
app/src/main/kotlin/org/fossify/filemanager/views Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import android.util.AttributeSet
55import android.view.MotionEvent
66import android.view.View
77import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
8+ import com.qtalk.recyclerviewfastscroller.RecyclerViewFastScroller
89
910class MySwipeRefreshLayout @JvmOverloads constructor(
1011 context : Context ,
@@ -31,4 +32,15 @@ class MySwipeRefreshLayout @JvmOverloads constructor(
3132 super .onStartNestedScroll(child, target, nestedScrollAxes)
3233 }
3334 }
35+
36+ override fun canChildScrollUp (): Boolean {
37+ val directChild = getChildAt(0 )
38+ return when (directChild) {
39+ is RecyclerViewFastScroller -> {
40+ val innerRecyclerView = directChild.getChildAt(0 )
41+ innerRecyclerView?.canScrollVertically(- 1 ) == true
42+ }
43+ else -> super .canChildScrollUp()
44+ }
45+ }
3446}
You can’t perform that action at this time.
0 commit comments