request MEDIA_LOCATION on SDK 30 already

This commit is contained in:
tibbi 2022-04-15 09:03:32 +02:00
parent 4ce5425cd4
commit 5d5c9e1920

View file

@ -156,7 +156,7 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
private fun handleMediaPermissions(callback: (granted: Boolean) -> Unit) {
handlePermission(PERMISSION_WRITE_STORAGE) { granted ->
callback(granted)
if (granted && isSPlus()) {
if (granted && isRPlus()) {
handlePermission(PERMISSION_MEDIA_LOCATION) {}
}
}