Commit ba8ad9543e40e6a7844bd9aadc2de6dc8a0ad676
1 parent
ee4ff8de
1 优化赛事详情页无法获取轨迹时的ui表现
Showing
1 changed file
with
1 additions
and
1 deletions
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/frame/view/RunRaceDetailFragmentView.java
| ... | ... | @@ -1137,7 +1137,7 @@ public class RunRaceDetailFragmentView implements MvpView, SensorEventListener { |
| 1137 | 1137 | location.getLongitude()); |
| 1138 | 1138 | baiduMap.setMyLocationData(followMyLocation); |
| 1139 | 1139 | //没有获取到轨迹 |
| 1140 | - if (0 == initZoom && null != firstLatLng) { | |
| 1140 | + if ((null == queryResultPoints||queryResultPoints.size()<1) && null != firstLatLng) { | |
| 1141 | 1141 | builder.target(firstLatLng).zoom(DEFULT_ZOOM); |
| 1142 | 1142 | baiduMap.animateMapStatus(MapStatusUpdateFactory.newMapStatus(builder.build())); |
| 1143 | 1143 | } | ... | ... |