mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-13 11:07:42 +00:00
change(web): add vnd.keyman.kmp+zip mime type to file-association intent-filters
Fixes: #14122
This commit is contained in:
parent
f4a67d8866
commit
90b2e45e6b
1 changed files with 55 additions and 1 deletions
|
|
@ -111,6 +111,60 @@
|
|||
<data
|
||||
android:mimeType="application/x-keyman-package"
|
||||
android:scheme="content" />
|
||||
<data
|
||||
android:mimeType="application/vnd.keyman.kmp+zip"
|
||||
android:scheme="content" />
|
||||
</intent-filter>
|
||||
|
||||
<intent-filter android:priority="50">
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
|
||||
<data android:scheme="file" />
|
||||
<data android:scheme="content" />
|
||||
|
||||
<data android:host="*" />
|
||||
<data android:pathPattern=".*\\.kmp" />
|
||||
<data
|
||||
android:mimeType="application/vnd.keyman.kmp+zip"
|
||||
android:scheme="content" />
|
||||
|
||||
<!--
|
||||
Backup MIME intents
|
||||
-->
|
||||
<data
|
||||
android:mimeType="application/vnd.keyman"
|
||||
android:scheme="content" />
|
||||
<data
|
||||
android:mimeType="application/octet-stream"
|
||||
android:scheme="content" />
|
||||
<data
|
||||
android:mimeType="application/x-keyman-package"
|
||||
android:scheme="content" />
|
||||
<data
|
||||
android:mimeType="application/vnd.keyman.kmp+zip"
|
||||
android:scheme="content" />
|
||||
</intent-filter>
|
||||
|
||||
<!--
|
||||
Capture file open requests (pathPattern is honoured) where no
|
||||
MIME type is provided in the Intent. An Intent with a null
|
||||
MIME type will never be matched by a filter with a set MIME
|
||||
type, so we need a second intent-filter if we wish to also
|
||||
match files with this extension and a non-null MIME type
|
||||
(even if it is non-null but zero length).
|
||||
-->
|
||||
<intent-filter android:priority="50">
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
|
||||
<data android:scheme="file" />
|
||||
<data android:host="*" />
|
||||
<data android:pathPattern="/.*\\.kmp" />
|
||||
</intent-filter>
|
||||
|
||||
<intent-filter>
|
||||
|
|
@ -148,7 +202,7 @@
|
|||
|
||||
</intent-filter>
|
||||
|
||||
<intent-filter android:priority="50">
|
||||
<intent-filter android:priority="50" android:autoVerify="true">
|
||||
<!-- KMAPro should also be able to handle /keyboards/install links and convert to /go/package/download -->
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue