mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-07 22:31:17 -04:00
kiwix#2717 requested changes done
This commit is contained in:
parent
0e8b74d8bc
commit
951a073678
@ -274,5 +274,5 @@ class OnlineLibraryFragment : BaseFragment(), FragmentActivityExtensions {
|
||||
.apply {
|
||||
onSelectAction = ::storeDeviceInPreferences
|
||||
}
|
||||
.show(parentFragmentManager, getString(R.string.pref_storage))
|
||||
.show(requireFragmentManager(), getString(R.string.pref_storage))
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ package org.kiwix.kiwixmobile.core.utils
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
|
||||
class SimpleRecyclerViewScrollListener(
|
||||
private val onLayoutScrollListener: (RecyclerView, Int) -> Unit // here we are calling callback
|
||||
private val onLayoutScrollListener: (RecyclerView, Int) -> Unit
|
||||
) :
|
||||
RecyclerView.OnScrollListener() {
|
||||
override fun onScrollStateChanged(recyclerView: RecyclerView, newState: Int) {
|
||||
@ -29,10 +29,6 @@ class SimpleRecyclerViewScrollListener(
|
||||
onLayoutScrollListener(
|
||||
recyclerView,
|
||||
newState
|
||||
) // implement the callback by passing recyclerview and newState
|
||||
super.onScrollStateChanged(recyclerView, newState)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user