From 421a7c7de9288c79e107ae105528ff97dcb24286 Mon Sep 17 00:00:00 2001 From: Serge Date: Tue, 8 Aug 2017 11:47:10 +0300 Subject: [PATCH] request permissions in api > 23 (Android N etc.) I'm not sure but did you mean ">=" ? --- .../de/danoeh/antennapod/activity/StorageErrorActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,