aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/ml
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-11-12 04:07:35 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-11-12 04:07:35 +0000
commit95a9215ec8159c01bada1d07bb7b647372016b80 (patch)
treef4b876a918856438f97a33e1b14731adf72f561a /app/src/main/java/ml
parentf9834f644c15b0b9e3be4c83a580506aec30ccfe (diff)
downloadinfinity-for-reddit-95a9215ec8159c01bada1d07bb7b647372016b80.tar
infinity-for-reddit-95a9215ec8159c01bada1d07bb7b647372016b80.tar.gz
infinity-for-reddit-95a9215ec8159c01bada1d07bb7b647372016b80.tar.bz2
infinity-for-reddit-95a9215ec8159c01bada1d07bb7b647372016b80.tar.lz
infinity-for-reddit-95a9215ec8159c01bada1d07bb7b647372016b80.tar.xz
infinity-for-reddit-95a9215ec8159c01bada1d07bb7b647372016b80.tar.zst
infinity-for-reddit-95a9215ec8159c01bada1d07bb7b647372016b80.zip
Disable swipe action when there are more than 1 column in PostFragment.
Diffstat (limited to 'app/src/main/java/ml')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/Fragment/PostFragment.java2
1 files changed, 1 insertions, 1 deletions
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);