Commit f03cf478f390d327052575121453341fc39f8412
1 parent
7b49da7e
1 轨迹工具恢复过滤精度
Showing
3 changed files
with
7 additions
and
7 deletions
config.gradle
moudle_pedometer/src/main/java/com/cnlive/moudle/collectionTrace/frame/view/CollRunningMapFragmentView.java
| @@ -672,9 +672,9 @@ public class CollRunningMapFragmentView implements MvpView, SensorEventListener | @@ -672,9 +672,9 @@ public class CollRunningMapFragmentView implements MvpView, SensorEventListener | ||
| 672 | } else { | 672 | } else { |
| 673 | //不是第一次定位状态 | 673 | //不是第一次定位状态 |
| 674 | //过滤定位精度 | 674 | //过滤定位精度 |
| 675 | -// if (location.getRadius() > Constant.LOCA_ACCURACY) { | ||
| 676 | -// return; | ||
| 677 | -// } | 675 | + if (location.getRadius() > Constant.LOCA_ACCURACY) { |
| 676 | + return; | ||
| 677 | + } | ||
| 678 | if (null != currentWalkPoints) { | 678 | if (null != currentWalkPoints) { |
| 679 | if (currentWalkPoints.size() > 0) { | 679 | if (currentWalkPoints.size() > 0) { |
| 680 | //进行判断 | 680 | //进行判断 |
moudle_pedometer/src/main/java/com/cnlive/moudle/collectionTrace/frame/view/StartTraceFragmentView.java
| @@ -425,9 +425,9 @@ public class StartTraceFragmentView implements MvpView, SensorEventListener { | @@ -425,9 +425,9 @@ public class StartTraceFragmentView implements MvpView, SensorEventListener { | ||
| 425 | } | 425 | } |
| 426 | 426 | ||
| 427 | //过滤定位精度 | 427 | //过滤定位精度 |
| 428 | -// if (location.getRadius() > Constant.LOCA_ACCURACY) { | ||
| 429 | -// return; | ||
| 430 | -// } | 428 | + if (location.getRadius() > Constant.LOCA_ACCURACY) { |
| 429 | + return; | ||
| 430 | + } | ||
| 431 | currentLatLng = new LatLng(location.getLatitude(), | 431 | currentLatLng = new LatLng(location.getLatitude(), |
| 432 | location.getLongitude()); | 432 | location.getLongitude()); |
| 433 | followMyLocation = new MyLocationData.Builder() | 433 | followMyLocation = new MyLocationData.Builder() |