Continue implementing Swipe Action Sensitivity in Comments.

This commit is contained in:
Docile-Alligator
2026-02-02 15:54:46 -05:00
parent b020acfcfc
commit fe7ad25b7d
2 changed files with 8 additions and 2 deletions

View File

@ -257,7 +257,10 @@ public class CommentsListingFragment extends Fragment implements FragmentCommuni
});
if (enableSwipeAction) {
touchHelper.attachToRecyclerView(binding.recyclerViewCommentsListingFragment, 5);
touchHelper.attachToRecyclerView(
binding.recyclerViewCommentsListingFragment,
Float.parseFloat(mSharedPreferences.getString(SharedPreferencesUtils.SWIPE_ACTION_SENSITIVITY_IN_COMMENTS, "5"))
);
}
new Handler().postDelayed(this::bindView, 0);

View File

@ -532,7 +532,10 @@ public class ViewPostDetailFragment extends Fragment implements FragmentCommunic
});
if (enableSwipeAction) {
touchHelper.attachToRecyclerView((mCommentsRecyclerView == null ? binding.postDetailRecyclerViewViewPostDetailFragment : mCommentsRecyclerView), 5);
touchHelper.attachToRecyclerView(
(mCommentsRecyclerView == null ? binding.postDetailRecyclerViewViewPostDetailFragment : mCommentsRecyclerView),
Float.parseFloat(mSharedPreferences.getString(SharedPreferencesUtils.SWIPE_ACTION_SENSITIVITY_IN_COMMENTS, "5"))
);
}
binding.swipeRefreshLayoutViewPostDetailFragment.setOnRefreshListener(() -> refresh(true, true));