request MEDIA_LOCATION on SDK 30 already
This commit is contained in:
parent
4ce5425cd4
commit
5d5c9e1920
1 changed files with 1 additions and 1 deletions
|
@ -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) {}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue