1
0
mirror of https://github.com/danog/termux-api.git synced 2024-11-26 11:54:40 +01:00
This commit is contained in:
Tom Yan 2019-02-12 11:01:07 +08:00 committed by Fredrik Fornwall
parent 9dcfc91174
commit e2d0176514

View File

@ -81,7 +81,7 @@ public class ShareAPI {
Intent sendIntent = new Intent();
sendIntent.setAction(finalIntentAction);
Uri uriToShare = Uri.withAppendedPath(Uri.parse("content://com.termux.sharedfiles/"), fileExtra);
Uri uriToShare = Uri.parse("content://com.termux.sharedfiles" + fileToShare.getAbsolutePath());
sendIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_GRANT_READ_URI_PERMISSION);
String contentTypeToUse;