Keep recycled log list lint clean
This commit is contained in:
@@ -59,9 +59,9 @@ class ViewLogsFragment : Fragment(R.layout.fragment_view_logs) {
|
||||
binding!!.logList.addOnScrollListener(object : RecyclerView.OnScrollListener() {
|
||||
override fun onScrolled(recyclerView: RecyclerView, dx: Int, dy: Int) {
|
||||
val scrollY = recyclerView.computeVerticalScrollOffset()
|
||||
binding?.scrollToTop?.visibility = if (scrollY > dp(SCROLL_TO_TOP_THRESHOLD_DP)) View.VISIBLE else View.GONE
|
||||
binding?.scrollToTop?.visibility = if (scrollY > dp(SCROLL_TO_TOP_THRESHOLD_DP)) View.VISIBLE else View.GONE
|
||||
if (!noMoreRows && !loading && !recyclerView.canScrollVertically(1)) {
|
||||
loadLogs(reset = false)
|
||||
loadLogs(reset = false)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user