fix: remove location manager and update listener on pause (#6483)
Some checks failed
Android CI / Run tests and generate APK (push) Has been cancelled

Co-authored-by: Nicolas Raoul <nicolas.raoul@gmail.com>
This commit is contained in:
Rohit Verma 2025-10-11 20:03:44 +05:30 committed by GitHub
parent 4c621364c9
commit 14d6c80241
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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() {