Fix location prompt by deferring permission request to Map tab visibility

This commit is contained in:
jagadeesh-18-bot 2025-09-19 01:22:37 +05:30
parent 772f1028df
commit c4bf715c96
2 changed files with 2 additions and 4 deletions

View file

@ -269,9 +269,7 @@ class ExploreMapFragment : CommonsDaggerSupportFragment(), ExploreMapContract.Vi
override fun onZoom(event: ZoomEvent?): Boolean = false override fun onZoom(event: ZoomEvent?): Boolean = false
}) })
if (!locationPermissionsHelper!!.checkLocationPermission(requireActivity())) { // Remove the permission check here to prevent it from running on fragment creation
askForLocationPermission()
}
} }
override fun onResume() { override fun onResume() {