Merge pull request #2387 from sonnayasomnambula/patch-1
request permissions in api > 23 (Android N etc.)
This commit is contained in:
commit
143fa2e96f
|
@ -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