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