forked from upstream-mirrors/OpenTracks
Fix the issue http://code.google.com/p/mytracks/issues/detail?id=1198
This commit is contained in:
@@ -214,8 +214,8 @@ public class MapOverlay {
|
|||||||
synchronized (locations) {
|
synchronized (locations) {
|
||||||
// Merge pendingLocations with locations
|
// Merge pendingLocations with locations
|
||||||
int newLocations = pendingLocations.drainTo(locations);
|
int newLocations = pendingLocations.drainTo(locations);
|
||||||
boolean needReload = reload || trackPath.updateState();
|
boolean isPathUpdate = trackPath.updateState();
|
||||||
if (needReload) {
|
if (reload || isPathUpdate) {
|
||||||
googleMap.clear();
|
googleMap.clear();
|
||||||
paths.clear();
|
paths.clear();
|
||||||
trackPath.updatePath(googleMap, paths, 0, locations);
|
trackPath.updatePath(googleMap, paths, 0, locations);
|
||||||
|
|||||||
Reference in New Issue
Block a user