mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-28 11:58:23 +01:00
Go back to top of the feed after changing sort type or refreshing.
This commit is contained in:
parent
94f08d616a
commit
44ed414f28
@ -1371,6 +1371,7 @@ public class PostFragment extends Fragment implements FragmentCommunicator {
|
|||||||
}
|
}
|
||||||
this.sortType = sortType;
|
this.sortType = sortType;
|
||||||
mPostViewModel.changeSortType(sortType);
|
mPostViewModel.changeSortType(sortType);
|
||||||
|
goBackToTop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1446,6 +1447,7 @@ public class PostFragment extends Fragment implements FragmentCommunicator {
|
|||||||
}
|
}
|
||||||
saveCache();
|
saveCache();
|
||||||
mAdapter.refresh();
|
mAdapter.refresh();
|
||||||
|
goBackToTop();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void showErrorView(int stringResId) {
|
private void showErrorView(int stringResId) {
|
||||||
|
Loading…
Reference in New Issue
Block a user