Fix an issue in Separate Post and Comments in Portrait Mode.

This commit is contained in:
Docile-Alligator 2022-06-17 16:42:18 +08:00
parent bd70a166ed
commit 14235a11af

View File

@ -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;