mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +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) {
|
private fun handleMediaPermissions(callback: (granted: Boolean) -> Unit) {
|
||||||
handlePermission(PERMISSION_WRITE_STORAGE) { granted ->
|
handlePermission(PERMISSION_WRITE_STORAGE) { granted ->
|
||||||
callback(granted)
|
callback(granted)
|
||||||
if (granted && isSPlus()) {
|
if (granted && isRPlus()) {
|
||||||
handlePermission(PERMISSION_MEDIA_LOCATION) {}
|
handlePermission(PERMISSION_MEDIA_LOCATION) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue