Skip to content

Commit

Permalink
Fix .torrent intent filter
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Ray committed Dec 2, 2024
1 parent bff2569 commit 9d5b8b7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions app/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,25 +52,22 @@
android:name="flutter_deeplinking_enabled"
android:value="false" />

<!-- Handle magnet:// links -->
<!-- Handle magnet: links -->
<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="magnet" />
</intent-filter>

<!-- Handle .torrent files -->
<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="*/*" />
<data android:mimeType="application/x-bittorrent" />
<data android:pathPattern=".*\\.torrent" />
</intent-filter>
</activity>
Expand Down

0 comments on commit 9d5b8b7

Please sign in to comment.