diff options
author | Alex Ning <chineseperson5@gmail.com> | 2022-01-16 01:49:07 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2022-01-16 01:49:07 +0000 |
commit | 44ed414f28d6254ed85195761cf6d45e88bd31da (patch) | |
tree | ba2d3c76173abeb1d0082658dc8ac94d52ec68ff /app/src/main/java | |
parent | 94f08d616a0c246cd7df4e372e61db6fd6bc7aa7 (diff) | |
download | infinity-for-reddit-44ed414f28d6254ed85195761cf6d45e88bd31da.tar infinity-for-reddit-44ed414f28d6254ed85195761cf6d45e88bd31da.tar.gz infinity-for-reddit-44ed414f28d6254ed85195761cf6d45e88bd31da.tar.bz2 infinity-for-reddit-44ed414f28d6254ed85195761cf6d45e88bd31da.tar.lz infinity-for-reddit-44ed414f28d6254ed85195761cf6d45e88bd31da.tar.xz infinity-for-reddit-44ed414f28d6254ed85195761cf6d45e88bd31da.tar.zst infinity-for-reddit-44ed414f28d6254ed85195761cf6d45e88bd31da.zip |
Go back to top of the feed after changing sort type or refreshing.
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java index 09655d7c..6d63b6c7 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java @@ -1371,6 +1371,7 @@ public class PostFragment extends Fragment implements FragmentCommunicator { } this.sortType = sortType; mPostViewModel.changeSortType(sortType); + goBackToTop(); } } @@ -1446,6 +1447,7 @@ public class PostFragment extends Fragment implements FragmentCommunicator { } saveCache(); mAdapter.refresh(); + goBackToTop(); } private void showErrorView(int stringResId) { |