mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 21:34:44 +02:00
Explicitly request read URI permission
This commit is contained in:
@@ -307,6 +307,7 @@ public class FragmentRules extends FragmentBase {
|
||||
private void onMenuImport() {
|
||||
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
|
||||
intent.addCategory(Intent.CATEGORY_OPENABLE);
|
||||
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
|
||||
intent.setType("*/*");
|
||||
startActivityForResult(intent, REQUEST_IMPORT);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user