aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorDocile-Alligator <chineseperson5@gmail.com>2022-06-17 08:42:18 +0000
committerDocile-Alligator <chineseperson5@gmail.com>2022-06-17 08:42:18 +0000
commit14235a11afadad877c5e3504f354d102ac8816a9 (patch)
treef27460d775eca28a6facde92f8692002638dedff /app/src/main
parentbd70a166eda649007075adb31b20b289e97331d1 (diff)
downloadinfinity-for-reddit-14235a11afadad877c5e3504f354d102ac8816a9.tar
infinity-for-reddit-14235a11afadad877c5e3504f354d102ac8816a9.tar.gz
infinity-for-reddit-14235a11afadad877c5e3504f354d102ac8816a9.tar.bz2
infinity-for-reddit-14235a11afadad877c5e3504f354d102ac8816a9.tar.lz
infinity-for-reddit-14235a11afadad877c5e3504f354d102ac8816a9.tar.xz
infinity-for-reddit-14235a11afadad877c5e3504f354d102ac8816a9.tar.zst
infinity-for-reddit-14235a11afadad877c5e3504f354d102ac8816a9.zip
Fix an issue in Separate Post and Comments in Portrait Mode.
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewPostDetailFragment.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewPostDetailFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewPostDetailFragment.java
index 700a6a84..5562cdb8 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewPostDetailFragment.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewPostDetailFragment.java
@@ -281,7 +281,8 @@ public class ViewPostDetailFragment extends Fragment implements FragmentCommunic
}
if (!((mPostDetailsSharedPreferences.getBoolean(SharedPreferencesUtils.SEPARATE_POST_AND_COMMENTS_IN_LANDSCAPE_MODE, true)
&& getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE)
- || (mPostDetailsSharedPreferences.getBoolean(SharedPreferencesUtils.SEPARATE_POST_AND_COMMENTS_IN_PORTRAIT_MODE, false)))) {
+ || (mPostDetailsSharedPreferences.getBoolean(SharedPreferencesUtils.SEPARATE_POST_AND_COMMENTS_IN_PORTRAIT_MODE, false)
+ && getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE))) {
if (mCommentsRecyclerView != null) {
mCommentsRecyclerView.setVisibility(View.GONE);
mCommentsRecyclerView = null;