Skip to content

Commit

Permalink
Opening ZIM file via its file path instead of fileDescriptor if the u…
Browse files Browse the repository at this point in the history
…ser opens te ZIM file via deep linking.
  • Loading branch information
MohitMaliDeveloper committed Feb 22, 2024
1 parent a386cfc commit 1c0e026
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ class KiwixReaderFragment : CoreReaderFragment() {
when (it.scheme) {
"file" -> openZimFile(ZimReaderSource(it.toFile()))
"content" -> {
val zimReaderSource = ZimReaderSource(it)
val zimReaderSource = ZimReaderSource(getZimFileFromUri(it))
if (zimReaderSource.canOpenInLibkiwix()) {
zimReaderContainer?.let { zimReaderContainer ->
zimReaderContainer.setZimReaderSource(zimReaderSource)
Expand Down

0 comments on commit 1c0e026

Please sign in to comment.