fix: remove location manager and update listener on pause

This commit is contained in:
Rohit Verma 2025-10-11 18:47:10 +05:30
parent b8d340fbe8
commit 07a87ca036
No known key found for this signature in database

View file

@ -287,6 +287,8 @@ class ExploreMapFragment : CommonsDaggerSupportFragment(), ExploreMapContract.Vi
super.onPause()
// unregistering the broadcastReceiver, as it was causing an exception and a potential crash
unregisterNetworkReceiver()
locationManager.unregisterLocationManager()
locationManager.removeLocationListener(this)
}
fun requestLocationIfNeeded() {