diff --git a/app/src/main/java/org/kiwix/kiwixmobile/nav/destination/reader/KiwixReaderFragment.kt b/app/src/main/java/org/kiwix/kiwixmobile/nav/destination/reader/KiwixReaderFragment.kt index d9be58a4f..ab638536e 100644 --- a/app/src/main/java/org/kiwix/kiwixmobile/nav/destination/reader/KiwixReaderFragment.kt +++ b/app/src/main/java/org/kiwix/kiwixmobile/nav/destination/reader/KiwixReaderFragment.kt @@ -89,6 +89,12 @@ class KiwixReaderFragment : CoreReaderFragment() { if (args.pageUrl.isNotEmpty()) { if (args.zimFileUri.isNotEmpty()) { 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) } else {