mirror of
https://github.com/Docile-Alligator/Infinity-For-Reddit.git
synced 2026-03-13 19:29:26 +00:00
Continue implementing Swipe Action Sensitivity in Comments.
This commit is contained in:
@ -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);
|
||||
|
||||
@ -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));
|
||||
|
||||
Reference in New Issue
Block a user