mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 05:05:31 +03:00
Merge pull request #9485 from nextcloud/fixSetPictureAs
"set picture as" needs temporary read permission
This commit is contained in:
commit
e33419eb75
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue