Skip to content

Commit

Permalink
Merge pull request #4022 from kiwix/Fixes#4002
Browse files Browse the repository at this point in the history
Fixed: Not able to open a ZIM file from Samsung's file explorer.
  • Loading branch information
kelson42 authored Oct 31, 2024
2 parents 7400c26 + 0eb618c commit ab3d8ff
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,18 @@
<data android:mimeType="application/octet-stream" />

</intent-filter>
<intent-filter>
<!-- Intent filter for Samsung's "My Files" file manager.
This is necessary because it returns an empty mimeType for ZIM files,
preventing our application from appearing in the suggestion list. -->
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<!-- This will match any URI that starts with "content://0@media/external/file/" -->
<data android:scheme="content" />
<data android:host="media" />
<data android:pathPrefix="/external/file/" />
<data android:mimeType="*/*" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />

Expand Down

0 comments on commit ab3d8ff

Please sign in to comment.