Merge pull request #4022 from kiwix/Fixes#4002

Fixed: Not able to open a ZIM file from Samsung's file explorer.
This commit is contained in:
Kelson 2024-10-31 11:31:12 +01:00 committed by GitHub
commit ab3d8ffd75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -49,6 +49,18 @@
<data android:mimeType="application/octet-stream" /> <data android:mimeType="application/octet-stream" />
</intent-filter> </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> <intent-filter>
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />