do not require the Storage permission at opening third party intents

This commit is contained in:
tibbi 2020-03-20 19:20:37 +01:00
parent 1e37007452
commit 3e3f883c1f
1 changed files with 1 additions and 4 deletions

View File

@ -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) {