aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java2
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) {