|
|
@@ -174,11 +174,10 @@ class BooksFragment() : BaseFragment(R.layout.fragment_books),
|
|
|
}
|
|
|
|
|
|
fun upBookSort(sort: Int) {
|
|
|
- binding.root.post {
|
|
|
- arguments?.putInt("bookSort", sort)
|
|
|
- bookSort = sort
|
|
|
- upRecyclerData()
|
|
|
- }
|
|
|
+ if (!isAdded || view == null) return
|
|
|
+ arguments?.putInt("bookSort", sort)
|
|
|
+ bookSort = sort
|
|
|
+ upRecyclerData()
|
|
|
}
|
|
|
|
|
|
fun setEnableRefresh(enable: Boolean) {
|