Commit 6add7540 authored by /e/ robot's avatar /e/ robot
Browse files

Merge remote-tracking branch 'origin/lineage-17.1' into v1-q

parents 9aa46bf3 3cbd808c
......@@ -62,7 +62,8 @@ public class LastRecordHelper {
public static Intent getShareIntent(Uri uri, String mimeType) {
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setDataAndType(uri, mimeType);
intent.setType(mimeType);
intent.putExtra(Intent.EXTRA_STREAM, uri);
Intent chooserIntent = Intent.createChooser(intent, null);
chooserIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);
return chooserIntent;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment