I have app where I'm using GoogleMaps
. Normally if you run app for a first time or you will not allow location permission, it will show you dialog and warning message. But if I turn off location in my settings for every app on phone, it will check location permission and location permission was granted. Shouldn't this location permission turned off when I turn off global location in my settings?
Function checking if user has location permission:
val hasLocationPermission get() =
ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED