aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2024-10-29 18:40:00 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2024-10-29 18:40:00 +0000
commit9959d76829ccd4e1aa07d207550d538b9e8c9bb6 (patch)
treec904cf2ffa2e37386eb71353c5fdf7e7b3ef4c6f /app/src/main
parent8663477f6a6d7f51eb1508879868004fce5bb26c (diff)
downloadinfinity-for-reddit-9959d76829ccd4e1aa07d207550d538b9e8c9bb6.tar
infinity-for-reddit-9959d76829ccd4e1aa07d207550d538b9e8c9bb6.tar.gz
infinity-for-reddit-9959d76829ccd4e1aa07d207550d538b9e8c9bb6.tar.bz2
infinity-for-reddit-9959d76829ccd4e1aa07d207550d538b9e8c9bb6.tar.lz
infinity-for-reddit-9959d76829ccd4e1aa07d207550d538b9e8c9bb6.tar.xz
infinity-for-reddit-9959d76829ccd4e1aa07d207550d538b9e8c9bb6.tar.zst
infinity-for-reddit-9959d76829ccd4e1aa07d207550d538b9e8c9bb6.zip
Reduce ItemTouchHelper sensitivity in CommentsListingFragment.
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/fragments/CommentsListingFragment.java6
1 files changed, 3 insertions, 3 deletions
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);