mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 20:48:00 +01:00
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