This commit is contained in:
Horis
2024-08-19 17:55:12 +08:00
parent ec22152e37
commit 141ddb2f13

View File

@@ -174,7 +174,7 @@ class BookshelfFragment1() : BaseBookshelfFragment(R.layout.fragment_bookshelf1)
var fragment = super.instantiateItem(container, position) as BooksFragment
val group = bookGroups[position]
/**
* Activity recreate 会复用之前的 Fragment不正确的需要需要重新创建
* Activity recreate 会复用之前的 Fragment不正确的需要重新创建
*/
if (fragment.isCreated && getItemPosition(fragment) == POSITION_NONE) {
destroyItem(container, position, fragment)