Merge pull request #9485 from nextcloud/fixSetPictureAs

"set picture as" needs temporary read permission
This commit is contained in:
Álvaro Brey 2021-12-09 15:27:23 +01:00 committed by GitHub
commit e33419eb75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -843,6 +843,7 @@ public class FileOperationsHelper {
}
intent.setDataAndType(uri, file.getMimeType());
intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
fileActivity.startActivityForResult(Intent.createChooser(intent,
fileActivity.getString(R.string.set_as)),
200);