Skip to content

Commit

Permalink
Don't try to filter for SWF files by MIME type
Browse files Browse the repository at this point in the history
  • Loading branch information
torokati44 committed Feb 22, 2025
1 parent 2f9c120 commit efcac94
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@
<data android:scheme="file"/>
<data android:scheme="content"/>

<data android:mimeType="application/x-shockwave-flash"/>
<!--
Ideally "application/x-shockwave-flash" would be
used here, but Android doesn't recognize many
downloaded .swf files as such for some reason... :/
-->
<data android:mimeType="*/*"/>

<data android:host="*" />
<data android:pathPattern=".*.swf" />
Expand Down
5 changes: 4 additions & 1 deletion app/src/main/java/rs/ruffle/SelectSwfScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,10 @@ fun PickSwfButton(onSelect: (uri: Uri) -> Unit) {
OutlinedButton(
onClick = {
launcher.launch(
"application/x-shockwave-flash"
// Ideally "application/x-shockwave-flash" would be
// used here, but Android doesn't recognize many
// downloaded .swf files as such for some reason... :/
"*/*"
)
},
modifier = Modifier
Expand Down

0 comments on commit efcac94

Please sign in to comment.