app: expose file opening intents better [#78]

Copy-paste some extra fields onto the file opening intent filter as to
[hopefully] get Auxio to be recognized by OEM skins better.

Some OEM skins don't seem to do a basic query for an app that matches
the APP_MUSIC category. Instead, they do some insane query for apps
that match this specific file intent structure that Auxio does not fit
for whatever reason. Try to graft some manifest features from the MPV
android app to make Auxio correctly expose this. I have no idea if this
will actually do anything.
This commit is contained in:
OxygenCobalt 2022-02-15 19:26:10 -07:00
parent 5b57d77d02
commit 83dc6cd4c9
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
2 changed files with 6 additions and 2 deletions

View file

@ -3,8 +3,9 @@
## dev [v2.2.1 or v2.3.0]
#### What's Improved
- Updated chinese translations [courtesy of cccClyde]
- Use proper M3 top app bars
- Use proper material you top app bars
- Use body typography in correct places
- Manifest should expose Auxio's file opening functionality better
#### What's Fixed
- Fixed issue where playback would start unexpectedly when opening the app

View file

@ -51,9 +51,12 @@
<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="content" />
<data android:scheme="file" />
<data android:mimeType="audio/*" />
</intent-filter>
</activity>
@ -66,7 +69,7 @@
android:roundIcon="@mipmap/ic_launcher" />
<!--
Workaround to get apps that blindly query for ACTION_MEDIA_BUTTON working.
Work around apps that blindly query for ACTION_MEDIA_BUTTON working.
See the class for more info.
-->
<receiver