android: Add additional Intent filter for import Activity with MIME type mask
Chrome creates such an Intent when opening downloaded files (not when directly opening them), a MIME type is set, but apparently not ours.
This commit is contained in:
parent
93489acc0d
commit
581f4326d5
|
@ -83,6 +83,7 @@
|
|||
<data android:scheme="content" />
|
||||
<data android:mimeType="application/vnd.strongswan.profile" />
|
||||
</intent-filter>
|
||||
<!-- this matches by file extension if no MIME type is provided -->
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
|
@ -97,6 +98,22 @@
|
|||
<data android:pathPattern=".*\\..*\\.sswan" />
|
||||
<data android:pathPattern=".*\\.sswan" />
|
||||
</intent-filter>
|
||||
<!-- this matches by file extension if any MIME type (but not ours) is provided -->
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
<data android:scheme="http" />
|
||||
<data android:scheme="https" />
|
||||
<data android:scheme="file" />
|
||||
<data android:scheme="content" />
|
||||
<data android:host="*" />
|
||||
<data android:mimeType="*/*" />
|
||||
<data android:pathPattern=".*\\..*\\..*\\..*\\.sswan" />
|
||||
<data android:pathPattern=".*\\..*\\..*\\.sswan" />
|
||||
<data android:pathPattern=".*\\..*\\.sswan" />
|
||||
<data android:pathPattern=".*\\.sswan" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".ui.TrustedCertificateImportActivity"
|
||||
|
|
Loading…
Reference in New Issue