Increase swipe refresh trigger distance to 160dp

https://github.com/2dust/v2rayNG/issues/5367
This commit is contained in:
2dust committed 2026-03-21 14:38:34 +08:00
1 parent a12ca3ea04
commit 9fce03d0ed
1 file changed
+2
@@ -71,6 +71,8 @@ class GroupServerFragment : BaseFragment<FragmentGroupServerBinding>(),
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) {