Commit 28020dea44a22fb41ce7d373d5f49f5c1dce8ce1

Authored by 杨帅
1 parent e0a9be9c

1 修改赛事详情页指南针的位置

config.gradle
... ... @@ -21,7 +21,7 @@ ext {
21 21 //编译方式
22 22 debug : false,
23 23 //版本号
24   - version: "0.3.3",
  24 + version: "0.3.4",
25 25 //Lib库前缀
26 26 packeg : "com.cnlive.module",
27 27 //Lib库名称
... ...
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/frame/view/RunRaceDetailFragmentView.java
... ... @@ -665,10 +665,12 @@ public class RunRaceDetailFragmentView implements MvpView, SensorEventListener {
665 665 if (baiduMap == null) {
666 666 baiduMap = mMapView.getMap();
667 667 }
668   -
669   - if (routePlanSearch == null) {
670   - routePlanSearch = RoutePlanSearch.newInstance();
671   - }
  668 + //设置指南针位置
  669 + android.graphics.Point point = new android.graphics.Point(ScreenUtil.getScreenWidth(getContext()) - 80, 80);
  670 + baiduMap.setCompassPosition(point);
  671 +// if (routePlanSearch == null) {
  672 +// routePlanSearch = RoutePlanSearch.newInstance();
  673 +// }
672 674 if (mUiSettings == null) {
673 675 mUiSettings = baiduMap.getUiSettings();
674 676 }
... ... @@ -1137,7 +1139,7 @@ public class RunRaceDetailFragmentView implements MvpView, SensorEventListener {
1137 1139 location.getLongitude());
1138 1140 baiduMap.setMyLocationData(followMyLocation);
1139 1141 //没有获取到轨迹
1140   - if ((null == queryResultPoints||queryResultPoints.size()<1) && null != firstLatLng) {
  1142 + if ((null == queryResultPoints || queryResultPoints.size() < 1) && null != firstLatLng) {
1141 1143 builder.target(firstLatLng).zoom(DEFULT_ZOOM);
1142 1144 baiduMap.animateMapStatus(MapStatusUpdateFactory.newMapStatus(builder.build()));
1143 1145 }
... ...