From 95a9215ec8159c01bada1d07bb7b647372016b80 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Thu, 12 Nov 2020 12:07:35 +0800 Subject: Disable swipe action when there are more than 1 column in PostFragment. --- .../ml/docilealligator/infinityforreddit/Fragment/PostFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main/java/ml') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Fragment/PostFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Fragment/PostFragment.java index c0b00a18..482ebb21 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/Fragment/PostFragment.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Fragment/PostFragment.java @@ -785,7 +785,7 @@ public class PostFragment extends Fragment implements FragmentCommunicator { } }); - if (mSharedPreferences.getBoolean(SharedPreferencesUtils.ENABLE_SWIPE_ACTION, false)) { + if (nColumns == 1 && mSharedPreferences.getBoolean(SharedPreferencesUtils.ENABLE_SWIPE_ACTION, false)) { touchHelper.attachToRecyclerView(mPostRecyclerView); } mPostRecyclerView.setAdapter(mAdapter); -- cgit v1.2.3