aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-10-20 15:23:56 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-10-20 15:23:56 +0000
commit6662f9af34d21820a0cf70caba6017e35cd81db6 (patch)
tree67ccf47b6a87f6a31fd4492fcf8a2e81bb376ac0 /app/src/main/java
parent096f12299447dbd21680d5195767b33788ffd5cb (diff)
downloadinfinity-for-reddit-6662f9af34d21820a0cf70caba6017e35cd81db6.tar
infinity-for-reddit-6662f9af34d21820a0cf70caba6017e35cd81db6.tar.gz
infinity-for-reddit-6662f9af34d21820a0cf70caba6017e35cd81db6.tar.bz2
infinity-for-reddit-6662f9af34d21820a0cf70caba6017e35cd81db6.tar.lz
infinity-for-reddit-6662f9af34d21820a0cf70caba6017e35cd81db6.tar.xz
infinity-for-reddit-6662f9af34d21820a0cf70caba6017e35cd81db6.tar.zst
infinity-for-reddit-6662f9af34d21820a0cf70caba6017e35cd81db6.zip
Fixed bottom sheet fragments cannot swipe down to show items when they are expanded. Version 1.3.1.
Diffstat (limited to '')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/Fragment/PostFragment.java5
1 files changed, 4 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 23bd0cd1..e5f8c2f3 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/Fragment/PostFragment.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Fragment/PostFragment.java
@@ -269,7 +269,6 @@ public class PostFragment extends Fragment implements FragmentCommunicator {
}
int postType = getArguments().getInt(EXTRA_POST_TYPE);
- //String sortType = getArguments().getString(EXTRA_SORT_TYPE);
int filter = getArguments().getInt(EXTRA_FILTER);
String accessToken = getArguments().getString(EXTRA_ACCESS_TOKEN);
@@ -491,6 +490,10 @@ public class PostFragment extends Fragment implements FragmentCommunicator {
}
public void changeSortType(SortType sortType) {
+ if (mFetchPostInfoLinearLayout.getVisibility() != View.GONE) {
+ mFetchPostInfoLinearLayout.setVisibility(View.GONE);
+ mGlide.clear(mFetchPostInfoImageView);
+ }
mPostViewModel.changeSortType(sortType);
}