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
This commit is contained in:
parent
b8d340fbe8
commit
07a87ca036
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