mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 21:34:44 +02:00
Explicitly request write URI permissions
This commit is contained in:
@@ -297,6 +297,7 @@ public class FragmentRules extends FragmentBase {
|
||||
|
||||
Intent intent = new Intent(Intent.ACTION_CREATE_DOCUMENT);
|
||||
intent.addCategory(Intent.CATEGORY_OPENABLE);
|
||||
intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
|
||||
intent.setType("*/*");
|
||||
intent.putExtra(Intent.EXTRA_TITLE, "fairemail_" +
|
||||
new SimpleDateFormat("yyyyMMdd").format(new Date().getTime()) + ".rules");
|
||||
|
||||
Reference in New Issue
Block a user