[3.3.0]
[feature] [轨迹引起的多线程问题]
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user