fix: permission

This commit is contained in:
imkiva 2018-05-27 12:29:15 +08:00
parent fcdf9f5703
commit e6ce534434
No known key found for this signature in database
GPG Key ID: A0A40A816B1689AA
2 changed files with 1 additions and 2 deletions

View File

@ -15,7 +15,6 @@
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.MANAGE_DOCUMENTS" />
<application
android:name=".App"

View File

@ -136,7 +136,7 @@ class SetupActivity : AppCompatActivity(), View.OnClickListener, ResultListener
when (id) {
R.id.setup_method_backup,
R.id.setup_method_local -> {
val intent = Intent(Intent.ACTION_OPEN_DOCUMENT)
val intent = Intent(Intent.ACTION_VIEW)
try {
startActivityForResult(intent, REQUEST_SELECT_PARAMETER)
} catch (ignore: ActivityNotFoundException) {