|
|
|
@ -2596,6 +2596,7 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
|
private void onActionAttachment() {
|
|
|
|
|
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
|
|
|
|
|
intent.addCategory(Intent.CATEGORY_OPENABLE);
|
|
|
|
|
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
|
|
|
|
|
intent.setType("*/*");
|
|
|
|
|
intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);
|
|
|
|
|
PackageManager pm = getContext().getPackageManager();
|
|
|
|
@ -3041,6 +3042,7 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
|
Log.i("Using file picker");
|
|
|
|
|
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
|
|
|
|
|
intent.addCategory(Intent.CATEGORY_OPENABLE);
|
|
|
|
|
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
|
|
|
|
|
intent.setType("image/*");
|
|
|
|
|
intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);
|
|
|
|
|
if (intent.resolveActivity(pm) == null) // GET_CONTENT whitelisted
|
|
|
|
|