Import code from @EssBee59

Fixes #362
This commit is contained in:
Manuel Fuhr 2021-11-13 06:39:41 +01:00
parent 31594880ef
commit a2c5b76105
3 changed files with 238 additions and 0 deletions

View file

@ -25,6 +25,51 @@
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!-- some apps (bluemail) do not recognize the .brf file extention, startactivity+intent is done for attachement with text/plain -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" />
</intent-filter>
<!-- general intent to register .brf files -->
<intent-filter
android:label="@string/app_name"
android:priority="50">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="file"/>
<data android:scheme="content"/>
<data android:host="*"/>
<data android:pathPattern=".*\\.brf" />
<data android:pathPattern=".*\\..*\\.brf" />
<data android:pathPattern=".*\\..*\\..*\\.brf" />
<data android:pathPattern=".*\\..*\\..*\\..*\\.brf" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.brf" />
</intent-filter>
<intent-filter
android:label="@string/app_name"
android:priority="50">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="file"/>
<data android:scheme="content"/>
<data android:host="*"/>
<data android:mimeType="*/*"/>
<data android:pathPattern=".*\\.brf" />
<data android:pathPattern=".*\\..*\\.brf" />
<data android:pathPattern=".*\\..*\\..*\\.brf" />
<data android:pathPattern=".*\\..*\\..*\\..*\\.brf" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.brf" />
</intent-filter>
</activity>
<activity android:name=".BInstallerActivity"
android:label="@string/app_name"