Fixed: FIND_IN_PAGE feature only works with first tab page.

* The previously loaded article was not loading in custom apps when switching to another fragment and then returning to the reader screen. Instead, the home page of the ZIM file was loading. A fix has been implemented to resolve this issue.
This commit is contained in:
MohitMaliFtechiz 2025-01-30 17:25:58 +05:30 committed by Kelson
parent a6a38438ad
commit 1ed02e5ab0

View File

@ -144,7 +144,6 @@ class CustomReaderFragment : CoreReaderFragment() {
zimReaderContainer?.zimFileReader?.let(::setUpBookmarks)
} else {
openObbOrZim()
manageExternalLaunchAndRestoringViewState()
}
requireArguments().clear()
}
@ -207,11 +206,15 @@ class CustomReaderFragment : CoreReaderFragment() {
val bookOnDisk = BookOnDisk(zimFileReader)
repositoryActions?.saveBook(bookOnDisk)
}
// Open the previous loaded pages after ZIM file loads.
manageExternalLaunchAndRestoringViewState()
}
is ValidationState.HasBothFiles -> {
it.zimFile.delete()
openZimFile(ZimReaderSource(it.obbFile), true)
// Open the previous loaded pages after ZIM file loads.
manageExternalLaunchAndRestoringViewState()
}
else -> {}