mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
update permissions
This commit is contained in:
parent
d9e1f17418
commit
8aa2f546b0
3 changed files with 12 additions and 13 deletions
|
|
@ -41,7 +41,7 @@ fun Context.getCameraPermissions(): List<String> {
|
|||
fun Context.hasCameraPermission() = getCameraPermissions().isEmpty()
|
||||
|
||||
/**
|
||||
* Camera permission (or empty if we already have what we need)
|
||||
* Location permission (or empty if we already have what we need)
|
||||
*/
|
||||
fun Context.getLocationPermissions(): List<String> {
|
||||
val perms = mutableListOf(Manifest.permission.ACCESS_FINE_LOCATION)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue