Skip to content

Commit

Permalink
feat: Support Via Download task, require via version 5.5.0 or above(A…
Browse files Browse the repository at this point in the history
…ndroid) (#412) (#419)
  • Loading branch information
DearZack authored Mar 27, 2024
1 parent c696b59 commit 27011fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ui/flutter/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<action android:name="android.intent.action.SEND_MULTIPLE" />

<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="*/*" />
</intent-filter>
</activity>

<!-- Add android:stopWithTask option only when necessary. -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ class AppController extends GetxController with WindowListener, TrayListener {
}

Future<void> _toCreate(Uri uri) async {
final path = uri.scheme == "magnet"
final path = (uri.scheme == "magnet" || uri.scheme == "http" || uri.scheme == "https")
? uri.toString()
: (await toFile(uri.toString())).path;
await Get.rootDelegate.offAndToNamed(Routes.CREATE, arguments: path);
Expand Down

0 comments on commit 27011fb

Please sign in to comment.