summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fietz <Martin.Fietz@gmail.com>2017-08-08 10:57:18 +0200
committerGitHub <noreply@github.com>2017-08-08 10:57:18 +0200
commit143fa2e96f9259dd3312aee4ef099ad2d78aa189 (patch)
treeabb0d7781085245133b4ac0acec2355e2babf8ad
parentc83659ffa9ad009af36919d9e2624831db600fe0 (diff)
parent421a7c7de9288c79e107ae105528ff97dcb24286 (diff)
downloadAntennaPod-143fa2e96f9259dd3312aee4ef099ad2d78aa189.zip
Merge pull request #2387 from sonnayasomnambula/patch-1
request permissions in api > 23 (Android N etc.)
-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,