mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 18:27:43 +00:00
Share as new task
This commit is contained in:
parent
879db6037f
commit
678ef5d949
1 changed files with 4 additions and 1 deletions
|
@ -550,7 +550,10 @@ public class Helper {
|
||||||
// Build intent
|
// Build intent
|
||||||
Intent intent = new Intent(Intent.ACTION_VIEW);
|
Intent intent = new Intent(Intent.ACTION_VIEW);
|
||||||
intent.setDataAndTypeAndNormalize(uri, type);
|
intent.setDataAndTypeAndNormalize(uri, type);
|
||||||
intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
|
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION |
|
||||||
|
Intent.FLAG_ACTIVITY_NEW_TASK |
|
||||||
|
Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
||||||
|
|
||||||
if (!TextUtils.isEmpty(name))
|
if (!TextUtils.isEmpty(name))
|
||||||
intent.putExtra(Intent.EXTRA_TITLE, Helper.sanitizeFilename(name));
|
intent.putExtra(Intent.EXTRA_TITLE, Helper.sanitizeFilename(name));
|
||||||
Log.i("Intent=" + intent + " type=" + type);
|
Log.i("Intent=" + intent + " type=" + type);
|
||||||
|
|
Loading…
Reference in a new issue