Commit 0291de4811d23e1404f58930f192aa8f3ce3c881

Authored by 杨帅
1 parent b6cc62f8

1 修改运营开始打点精度

moudle_pedometer/src/main/java/com/cnlive/moudle/collectionTrace/frame/view/StartTraceFragmentView.java
... ... @@ -407,15 +407,18 @@ public class StartTraceFragmentView implements MvpView, SensorEventListener {
407 407 }
408 408 if (isFirstLoc) {
409 409 isFirstLoc = false;
410   - if (location.getRadius() > Constant.LOCA_ACCURACY) {
411   - Toast.makeText(getContext(), "当前定位精度为:" + location.getRadius() + "米,请您移动至空旷地带!", Toast.LENGTH_SHORT).show();
412   - }
413   - } else {
414   - //过滤定位精度
415   - if (location.getRadius() > Constant.LOCA_ACCURACY) {
416   - return;
417   - }
  410 + Toast.makeText(getContext(), "当前定位精度为:" + location.getRadius() + "米,请您移动至空旷地带!", Toast.LENGTH_SHORT).show();
  411 +
418 412 }
  413 +// if (location.getRadius() > Constant.LOCA_ACCURACY) {
  414 +// Toast.makeText(getContext(), "当前定位精度为:" + location.getRadius() + "米,请您移动至空旷地带!", Toast.LENGTH_SHORT).show();
  415 +// }
  416 +// } else {
  417 + //过滤定位精度
  418 + if (location.getRadius() > Constant.LOCA_ACCURACY) {
  419 + return;
  420 + }
  421 +// }
419 422 followMyLocation = new MyLocationData.Builder()
420 423 .accuracy(location.getRadius())
421 424 // 此处设置开发者获取到的方向信息,顺时针0-360
... ...