From 9fce03d0ed69ba29a0fb55a570b3294eb3a7cdb5 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Sat, 21 Mar 2026 14:38:34 +0800 Subject: [PATCH] Increase swipe refresh trigger distance to 160dp https://github.com/2dust/v2rayNG/issues/5367 --- .../app/src/main/java/com/v2ray/ang/ui/GroupServerFragment.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/V2rayNG/app/src/main/java/com/v2ray/ang/ui/GroupServerFragment.kt b/V2rayNG/app/src/main/java/com/v2ray/ang/ui/GroupServerFragment.kt index 06c5d8d7..0a561e87 100644 --- a/V2rayNG/app/src/main/java/com/v2ray/ang/ui/GroupServerFragment.kt +++ b/V2rayNG/app/src/main/java/com/v2ray/ang/ui/GroupServerFragment.kt @@ -71,6 +71,8 @@ class GroupServerFragment : BaseFragment(), itemTouchHelper?.attachToRecyclerView(binding.recyclerView) binding.refreshLayout.setOnRefreshListener(this) + // Set the distance to trigger sync to 160dp + binding.refreshLayout.setDistanceToTriggerSync((160 * resources.displayMetrics.density).toInt()) mainViewModel.updateListAction.observe(viewLifecycleOwner) { index -> if (mainViewModel.subscriptionId != subId) {