[android] - stop location updates when toggle MyLocationView state (#9099)

This commit is contained in:
Tobrun
2017-05-24 14:47:31 +02:00
committed by GitHub
parent 8c73cb1a46
commit 3c35bf1d17

View File

@@ -440,6 +440,7 @@ public class MyLocationView extends View {
} else {
// Disable location and user dot
location = null;
locationSource.removeLocationUpdates();
locationSource.removeLocationEngineListener(userLocationListener);
locationSource.deactivate();
}