diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 5a70cf03..cd595f0b 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -11,7 +11,6 @@ - diff --git a/app/src/main/java/com/github/kr328/clash/FilesActivity.kt b/app/src/main/java/com/github/kr328/clash/FilesActivity.kt index f0e2ba3b..797c6c4b 100644 --- a/app/src/main/java/com/github/kr328/clash/FilesActivity.kt +++ b/app/src/main/java/com/github/kr328/clash/FilesActivity.kt @@ -81,24 +81,6 @@ class FilesActivity : BaseActivity() { client.renameDocument(it.file.id, newName) } is FilesDesign.Request.ImportFile -> { - if (Build.VERSION.SDK_INT >= 23) { - val hasPermission = ContextCompat.checkSelfPermission( - this@FilesActivity, - Manifest.permission.READ_EXTERNAL_STORAGE - ) == PackageManager.PERMISSION_GRANTED - - if (!hasPermission) { - val granted = startActivityForResult( - ActivityResultContracts.RequestPermission(), - Manifest.permission.READ_EXTERNAL_STORAGE, - ) - - if (!granted) { - return@onReceive - } - } - } - val uri: Uri? = startActivityForResult( ActivityResultContracts.GetContent(), "*/*"