[android] - stop location updates when toggle MyLocationView state (#9099)
This commit is contained in:
@@ -440,6 +440,7 @@ public class MyLocationView extends View {
|
||||
} else {
|
||||
// Disable location and user dot
|
||||
location = null;
|
||||
locationSource.removeLocationUpdates();
|
||||
locationSource.removeLocationEngineListener(userLocationListener);
|
||||
locationSource.deactivate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user