request permissions in api > 23 (Android N etc.)
I'm not sure but did you mean ">=" ?
This commit is contained in:
parent
c83659ffa9
commit
421a7c7de9
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue