mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2024-12-22 05:26:58 +01:00
do not grant write_uri_permission at get_content result intent
This commit is contained in:
parent
6f53df863a
commit
09ff1779e8
@ -478,7 +478,7 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
||||
val uri = getFilePublicUri(File(path), BuildConfig.APPLICATION_ID)
|
||||
val type = path.getMimeTypeFromPath()
|
||||
resultIntent.setDataAndTypeAndNormalize(uri, type)
|
||||
resultIntent.flags = Intent.FLAG_GRANT_READ_URI_PERMISSION or Intent.FLAG_GRANT_WRITE_URI_PERMISSION
|
||||
resultIntent.flags = Intent.FLAG_GRANT_READ_URI_PERMISSION
|
||||
}
|
||||
|
||||
private fun itemClicked(path: String) {
|
||||
|
Loading…
Reference in New Issue
Block a user