[6.5.0][道路事件] 部分代码提交

This commit is contained in:
renwj
2024-06-27 16:56:21 +08:00
parent 3f65bc3976
commit 1f06c9a89e
14 changed files with 505 additions and 207 deletions

View File

@@ -172,9 +172,9 @@ public class RouteOverlayDrawer {
}
double lon = CallerChassisLocationWGS84ListenerManager.INSTANCE.getChassisLocationWGS84().getLongitude();
double lat = CallerChassisLocationWGS84ListenerManager.INSTANCE.getChassisLocationWGS84().getLatitude();
if (points.size() > 0) {
if (!points.isEmpty()) {
MogoLatLng top = null;
while (points.size() != 0) {
while (!points.isEmpty()) {
MogoLatLng first = points.peek();
if (first == null) {
continue;
@@ -194,7 +194,7 @@ public class RouteOverlayDrawer {
}
top = first;
}
if (points.size() == 0) {
if (points.isEmpty()) {
isExcept = true;
return;
}
@@ -251,7 +251,7 @@ public class RouteOverlayDrawer {
if (isExcept) {
setVisible(false);
}
if (points.size() > 0) {
if (!points.isEmpty()) {
for (int i = 0; i < points.size(); i++) {
MogoLatLng latLng = points.get(i);
if (latLng == null) {