mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-04 03:06:41 -04:00
Fixed, Bookmark toggle is not on when opening bookmarks for existing opened book.
* Fixed the issue by correctly setting up the bookmark disposable for the current ZIM file when opening bookmarks for the currently opened book.
This commit is contained in:
parent
43e6ce6bee
commit
46b51bb710
@ -89,6 +89,12 @@ class KiwixReaderFragment : CoreReaderFragment() {
|
|||||||
if (args.pageUrl.isNotEmpty()) {
|
if (args.pageUrl.isNotEmpty()) {
|
||||||
if (args.zimFileUri.isNotEmpty()) {
|
if (args.zimFileUri.isNotEmpty()) {
|
||||||
tryOpeningZimFile(args.zimFileUri)
|
tryOpeningZimFile(args.zimFileUri)
|
||||||
|
} else {
|
||||||
|
// Set up bookmarks for the current book when opening bookmarks from the Bookmark screen.
|
||||||
|
// This is necessary because we are not opening the ZIM file again; the bookmark is
|
||||||
|
// inside the currently opened book. Bookmarks are set up when opening the ZIM file.
|
||||||
|
// See https://github.com/kiwix/kiwix-android/issues/3541
|
||||||
|
zimReaderContainer?.zimFileReader?.let(::setUpBookmarks)
|
||||||
}
|
}
|
||||||
loadUrlWithCurrentWebview(args.pageUrl)
|
loadUrlWithCurrentWebview(args.pageUrl)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user