Commit d276b06b421ac8e9b01e882c36d859fcdeafcf1c
1 parent
ac4b6a7e
1.赛事详情
Showing
1 changed file
with
0 additions
and
20 deletions
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/frame/presenter/RunningMapFragmentPresenter.java
| ... | ... | @@ -277,25 +277,6 @@ public class RunningMapFragmentPresenter extends MvpBasePresenter<RunningMapFrag |
| 277 | 277 | @Override |
| 278 | 278 | public void onReceiveLocation(TraceLocation traceLocation) { |
| 279 | 279 | super.onReceiveLocation(traceLocation); |
| 280 | - Log.e(TAG, "onReceiveLocation"); | |
| 281 | - Toast.makeText(context, "onReceiveLocation", Toast.LENGTH_SHORT).show(); | |
| 282 | - | |
| 283 | - Log.e(TAG, "onReceiveLocation"); | |
| 284 | - if (traceLocation != null) { | |
| 285 | - realTimePoints.add(new LatLng(traceLocation.getLatitude(), traceLocation.getLongitude())); | |
| 286 | - } | |
| 287 | - Log.e(TAG, "onReceiveLocation: size:" + realTimePoints.size()); | |
| 288 | - if (realTimePoints.size() > 2) { | |
| 289 | - if (getView() != null) { | |
| 290 | - if (realTimeOverlay == null) { | |
| 291 | - realTimeOverlay = MyMapUtil.drawMapLine(context, getView().baiduMap, realTimePoints, R.color.black); | |
| 292 | - } else { | |
| 293 | - realTimeOverlay.remove(); | |
| 294 | - realTimeOverlay = MyMapUtil.drawMapLine(context, getView().baiduMap, realTimePoints, R.color.black); | |
| 295 | - | |
| 296 | - } | |
| 297 | - } | |
| 298 | - } | |
| 299 | 280 | } |
| 300 | 281 | }; |
| 301 | 282 | //查询实时轨迹 |
| ... | ... | @@ -359,7 +340,6 @@ public class RunningMapFragmentPresenter extends MvpBasePresenter<RunningMapFrag |
| 359 | 340 | List<MonitoredStatusInfo> monitoredStatusInfos = monitoredStatusResponse.getMonitoredStatusInfos(); |
| 360 | 341 | for (MonitoredStatusInfo monitoredStatusInfo : monitoredStatusInfos) { |
| 361 | 342 | monitoredStatusInfo.getFenceId(); |
| 362 | - | |
| 363 | 343 | MonitoredStatus status = monitoredStatusInfo.getMonitoredStatus();//获取状态 |
| 364 | 344 | switch (status) { |
| 365 | 345 | case in: | ... | ... |