do not require the Storage permission at opening third party intents
This commit is contained in:
parent
1e37007452
commit
3e3f883c1f
1 changed files with 1 additions and 4 deletions
|
@ -215,10 +215,7 @@ class MainActivity : SimpleActivity(), CanvasListener {
|
|||
}
|
||||
|
||||
if (intent?.action == Intent.ACTION_VIEW && intent.data != null) {
|
||||
getStoragePermission {
|
||||
val path = getRealPathFromURI(intent.data!!) ?: intent.dataString
|
||||
openPath(path!!)
|
||||
}
|
||||
tryOpenUri(intent.data!!, intent)
|
||||
}
|
||||
|
||||
if (intent?.action == MediaStore.ACTION_IMAGE_CAPTURE) {
|
||||
|
|
Loading…
Reference in a new issue