Skip to content

Commit

Permalink
Fixed: Opening the ZIM file leads to the opening of the search.
Browse files Browse the repository at this point in the history
* We were passing the activity's intent, which did not contain the type, resulting in the opening of the search without triggering it. To resolve this, we are now passing the actual intent that we receive.
  • Loading branch information
MohitMaliDeveloper committed Feb 8, 2024
1 parent 5d69248 commit 7b50fb7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ class KiwixReaderFragment : CoreReaderFragment() {
intent: Intent,
activity: AppCompatActivity
): Super {
super.onNewIntent(activity.intent, activity)
super.onNewIntent(intent, activity)
intent.data?.let {
when (it.scheme) {
"file" -> openZimFile(ZimFile(it.toFile()))
Expand Down

0 comments on commit 7b50fb7

Please sign in to comment.