forked from upstream-mirrors/OpenTracks
Change code style of MapOverlay.
This commit is contained in:
@@ -214,8 +214,9 @@ 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 isPathUpdate = trackPath.updateState();
|
// Call updateState first because we want to update its state each time
|
||||||
if (reload || isPathUpdate) {
|
// (for dynamic coloring)
|
||||||
|
if (trackPath.updateState() || reload) {
|
||||||
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