mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Fix location prompt by deferring permission request to Map tab visibility
This commit is contained in:
parent
772f1028df
commit
c4bf715c96
2 changed files with 2 additions and 4 deletions
|
|
@ -269,9 +269,7 @@ class ExploreMapFragment : CommonsDaggerSupportFragment(), ExploreMapContract.Vi
|
|||
|
||||
override fun onZoom(event: ZoomEvent?): Boolean = false
|
||||
})
|
||||
if (!locationPermissionsHelper!!.checkLocationPermission(requireActivity())) {
|
||||
askForLocationPermission()
|
||||
}
|
||||
// Remove the permission check here to prevent it from running on fragment creation
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue