From 9959d76829ccd4e1aa07d207550d538b9e8c9bb6 Mon Sep 17 00:00:00 2001 From: Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> Date: Tue, 29 Oct 2024 14:40:00 -0400 Subject: Reduce ItemTouchHelper sensitivity in CommentsListingFragment. --- .../infinityforreddit/fragments/CommentsListingFragment.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/src/main') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/CommentsListingFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/CommentsListingFragment.java index f9b4ddaf..d4b53709 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/CommentsListingFragment.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/CommentsListingFragment.java @@ -245,15 +245,15 @@ public class CommentsListingFragment extends Fragment implements FragmentCommuni }); if (enableSwipeAction) { - touchHelper.attachToRecyclerView(binding.recyclerViewCommentsListingFragment, 1); + touchHelper.attachToRecyclerView(binding.recyclerViewCommentsListingFragment, 5); } - new Handler().postDelayed(() -> bindView(resources), 0); + new Handler().postDelayed(this::bindView, 0); return binding.getRoot(); } - private void bindView(Resources resources) { + private void bindView() { if (mActivity != null && !mActivity.isFinishing() && !mActivity.isDestroyed()) { mLinearLayoutManager = new LinearLayoutManagerBugFixed(mActivity); binding.recyclerViewCommentsListingFragment.setLayoutManager(mLinearLayoutManager); -- cgit v1.2.3