mirror of
https://github.com/SimpleMobileTools/Simple-Draw.git
synced 2025-06-05 21:59:17 +02:00
do not require the Storage permission at opening third party intents
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user