Glimpse: Request ACCESS_MEDIA_LOCATION in Q+

It's required to read the media location.

Change-Id: I6d5b28338c86b23a537696b10a0b5bed87cb669b
This commit is contained in:
Luca Stefani 2023-08-04 09:51:02 +02:00 committed by LuK1337
parent 18a61b6507
commit 2ef61e0c48
2 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,7 @@
android:maxSdkVersion="32" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION" />
<application
android:name="org.lineageos.glimpse.GlimpseApplication"

View File

@ -35,6 +35,9 @@ class PermissionsUtils(private val context: Context) {
} else {
add(Manifest.permission.WRITE_EXTERNAL_STORAGE)
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
add(Manifest.permission.ACCESS_MEDIA_LOCATION)
}
}.toTypedArray()
}
}