mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user