[feature]
[轨迹引起的多线程问题]
This commit is contained in:
yangyakun
2023-06-21 10:37:35 +08:00
parent 64518d2f14
commit d1b35debb3
2 changed files with 6 additions and 0 deletions

View File

@@ -568,6 +568,9 @@ public class BusPassengerModel {
if (mTwoStationsRouts.size() > 0 && mLocation != null) {
Map<Integer, List<MogoLocation>> lastPointsMap = CoordinateCalculateRouteUtil
.getRemainPointListByCompareNew(mPreRouteIndex, mTwoStationsRouts, mLocation);
if(lastPointsMap==null){
return;
}
for (int index : lastPointsMap.keySet()) {
mPreRouteIndex = index;
break;

View File

@@ -620,6 +620,9 @@ public class BusPassengerModel {
if (mTwoStationsRouts.size() > 0 && mLocation != null){
Map<Integer,List<MogoLocation>> lastPointsMap = CoordinateCalculateRouteUtil
.getRemainPointListByCompareNew(mPreRouteIndex,mTwoStationsRouts,mLocation);
if(lastPointsMap==null){
return;
}
for (int index: lastPointsMap.keySet()) {
mPreRouteIndex = index;
break;