mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-04 03:06:41 -04:00
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:
parent
a6a38438ad
commit
1ed02e5ab0
@ -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 -> {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user