Change code style of MapOverlay.

This commit is contained in:
youtaol
2012-12-12 10:01:03 +08:00
parent 28eb0cd677
commit 3563fac1e8
@@ -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);