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) {
// Merge pendingLocations with locations
int newLocations = pendingLocations.drainTo(locations);
boolean isPathUpdate = trackPath.updateState();
if (reload || isPathUpdate) {
// Call updateState first because we want to update its state each time
// (for dynamic coloring)
if (trackPath.updateState() || reload) {
googleMap.clear();
paths.clear();
trackPath.updatePath(googleMap, paths, 0, locations);