mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
fix: remove location manager and update listener on pause (#6483)
Some checks failed
Android CI / Run tests and generate APK (push) Has been cancelled
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:
parent
4c621364c9
commit
14d6c80241
1 changed files with 2 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue