summaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorSerge <arada.s@bk.ru>2017-08-08 11:47:10 +0300
committerGitHub <noreply@github.com>2017-08-08 11:47:10 +0300
commit421a7c7de9288c79e107ae105528ff97dcb24286 (patch)
treeabb0d7781085245133b4ac0acec2355e2babf8ad /app/src/main
parentc83659ffa9ad009af36919d9e2624831db600fe0 (diff)
downloadAntennaPod-421a7c7de9288c79e107ae105528ff97dcb24286.zip
request permissions in api > 23 (Android N etc.)
I'm not sure but did you mean ">=" ?
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/de/danoeh/antennapod/activity/StorageErrorActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/activity/StorageErrorActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/StorageErrorActivity.java
index 81d727283..62bff0891 100644
--- a/app/src/main/java/de/danoeh/antennapod/activity/StorageErrorActivity.java
+++ b/app/src/main/java/de/danoeh/antennapod/activity/StorageErrorActivity.java
@@ -55,7 +55,7 @@ public class StorageErrorActivity extends AppCompatActivity {
openDirectoryChooser();
}
});
- if (Build.VERSION.SDK_INT == Build.VERSION_CODES.M) {
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
int readPermission = ActivityCompat.checkSelfPermission(this,
Manifest.permission.READ_EXTERNAL_STORAGE);
int writePermission = ActivityCompat.checkSelfPermission(this,