Glimpse: Request ACCESS_MEDIA_LOCATION in Q+
It's required to read the media location. Change-Id: I6d5b28338c86b23a537696b10a0b5bed87cb669b
This commit is contained in:
parent
18a61b6507
commit
2ef61e0c48
|
@ -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"
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue