Commit 9681ca8130014d8aaaf2845301da4a0038eefcd2

Authored by 杨帅
1 parent 7ccbc6a7

1.赛事详情

moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/frame/presenter/RunningMapFragmentPresenter.java
... ... @@ -3,6 +3,7 @@ package com.cnlive.moudle.pedometer.frame.presenter;
3 3 import android.content.Context;
4 4 import android.graphics.Bitmap;
5 5 import android.graphics.BitmapFactory;
  6 +import android.util.Log;
6 7 import android.widget.Toast;
7 8  
8 9 import com.baidu.mapapi.map.BitmapDescriptorFactory;
... ... @@ -37,6 +38,7 @@ import java.util.ArrayList;
37 38 import java.util.List;
38 39  
39 40 public class RunningMapFragmentPresenter extends MvpBasePresenter<RunningMapFragmentView> {
  41 + private final String TAG = "RunningMapPresenter";
40 42 /******轨迹查询相关******/
41 43 //分页大小
42 44 private int pageSize = 1000;
... ... @@ -58,6 +60,7 @@ public class RunningMapFragmentPresenter extends MvpBasePresenter&lt;RunningMapFrag
58 60 * @param endTime
59 61 */
60 62 public void queryHistoryTrace(Context context, String entityName, long startTime, long endTime) {
  63 + Log.e(TAG, "queryHistoryTrace: ");
61 64 if (historyTrackRequest == null) {
62 65 historyTrackRequest = new HistoryTrackRequest();
63 66 //设置查询设备名称
... ...
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/frame/view/RunMainFragmentView.java
... ... @@ -59,7 +59,7 @@ public class RunMainFragmentView implements MvpView {
59 59 * 初始化相关视图
60 60 */
61 61 public void initView() {
62   - uid = "123";
  62 + uid = "yangshuai";
63 63 fragment.binding.llRunMainRoot.setVisibility(View.GONE);
64 64 ButtonAnimUtil.startAnimation(fragment.binding.llStartTimeTip, false);
65 65 firstTimeFlag = true;
... ...
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/frame/view/RunRaceDetailFragmentView.java
... ... @@ -274,7 +274,7 @@ public class RunRaceDetailFragmentView implements MvpView, SensorEventListener {
274 274 * 开始路线规划
275 275 */
276 276 public void searchRouteResult(LatLng StartPoint, LatLng EndPoint, int index, int listSize) {
277   - Log.e(TAG, "searchRouteResult: ");
  277 +// Log.e(TAG, "searchRouteResult: ");
278 278 float currentZoom = baiduMap.getMapStatus().zoom;
279 279 // 设置起终点信息,对于tranist search 来说,城市名无意义
280 280 PlanNode stNode = PlanNode.withLocation(StartPoint);
... ...
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/service/StepService.java
... ... @@ -167,14 +167,7 @@ public class StepService extends Service implements SensorEventListener {
167 167 Log.e("执行onCreate", "onCreate");
168 168 super.onCreate();
169 169 init();
170   - if (mClient == null) {
171   - mClient = new LBSTraceClient(getApplicationContext());
172   - }
173   - if (mTrace == null) {
174   - mTrace = new Trace(serviceId, entityName);
175   - }
176 170 showStartForegroundNotification();
177   -
178 171 initBroadcastReceiver();
179 172 }
180 173  
... ... @@ -346,6 +339,7 @@ public class StepService extends Service implements SensorEventListener {
346 339 if (intent.getExtras().getString("userId") != null) {
347 340 userId = intent.getExtras().getString("userId");
348 341 entityName = userId;
  342 + Log.e(TAG, "onStartCommand: entityName" + entityName);
349 343 initTodayData(userId);
350 344 initTrace();
351 345 if (!EventBus.getDefault().isRegistered(this)) {
... ...