mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-09 07:16:04 -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 {
|
.apply {
|
||||||
onSelectAction = ::storeDeviceInPreferences
|
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
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
|
|
||||||
class SimpleRecyclerViewScrollListener(
|
class SimpleRecyclerViewScrollListener(
|
||||||
private val onLayoutScrollListener: (RecyclerView, Int) -> Unit // here we are calling callback
|
private val onLayoutScrollListener: (RecyclerView, Int) -> Unit
|
||||||
) :
|
) :
|
||||||
RecyclerView.OnScrollListener() {
|
RecyclerView.OnScrollListener() {
|
||||||
override fun onScrollStateChanged(recyclerView: RecyclerView, newState: Int) {
|
override fun onScrollStateChanged(recyclerView: RecyclerView, newState: Int) {
|
||||||
@ -29,10 +29,6 @@ class SimpleRecyclerViewScrollListener(
|
|||||||
onLayoutScrollListener(
|
onLayoutScrollListener(
|
||||||
recyclerView,
|
recyclerView,
|
||||||
newState
|
newState
|
||||||
) // implement the callback by passing recyclerview and newState
|
)
|
||||||
super.onScrollStateChanged(recyclerView, newState)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user