From c28144b9edff63d853011244def6009a39cc1c00 Mon Sep 17 00:00:00 2001 From: ajp_anton Date: Mon, 27 Jul 2026 23:02:25 +0000 Subject: [PATCH] Keep recycled log list lint clean --- .../main/java/se/ajpanton/notificationlog/ViewLogsFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/se/ajpanton/notificationlog/ViewLogsFragment.kt b/app/src/main/java/se/ajpanton/notificationlog/ViewLogsFragment.kt index b82937d..b401a31 100644 --- a/app/src/main/java/se/ajpanton/notificationlog/ViewLogsFragment.kt +++ b/app/src/main/java/se/ajpanton/notificationlog/ViewLogsFragment.kt @@ -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) } } })