|
@@ -40,7 +40,6 @@ public class UnCalibrateWorkFragment extends PhotoFragment {
|
|
|
private final List<FileBean> photoList = new ArrayList<>();
|
|
|
private WaterMeterEntity waterMeterEntity;
|
|
|
private final List<DictEntity> dictEntities = new ArrayList<>();
|
|
|
- private boolean isFirst = true;
|
|
|
private LocationUtil_xu.CoordinateClass locationUtilXuNew = null;
|
|
|
|
|
|
@Override
|
|
@@ -179,10 +178,7 @@ public class UnCalibrateWorkFragment extends PhotoFragment {
|
|
|
@Override
|
|
|
public void initMapView() {
|
|
|
super.initMapView();
|
|
|
- aMap.setOnMapTouchListener(motionEvent -> {
|
|
|
- binding.llMap.mapView.requestDisallowInterceptTouchEvent(motionEvent.getAction() != MotionEvent.ACTION_UP);
|
|
|
- isFirst = false;
|
|
|
- });
|
|
|
+ aMap.setOnMapTouchListener(motionEvent -> binding.llMap.mapView.requestDisallowInterceptTouchEvent(motionEvent.getAction() != MotionEvent.ACTION_UP));
|
|
|
binding.llMap.imDrag.setVisibility(View.VISIBLE);
|
|
|
binding.llMap.imgNavit.setVisibility(View.GONE);
|
|
|
binding.llMap.imgFw.setVisibility(View.GONE);
|
|
@@ -211,11 +207,9 @@ public class UnCalibrateWorkFragment extends PhotoFragment {
|
|
|
@Override
|
|
|
public void initMapListener(LocationUtil_xu.CoordinateClass info, String headName, String shortName, String areaCode) {
|
|
|
super.initMapListener(info, headName, shortName, areaCode);
|
|
|
- if (!isFirst) {
|
|
|
- locationUtilXuNew = info;
|
|
|
- binding.tvLat.setText("经度:" + locationUtilXuNew.Longtitude + " 纬度:" + locationUtilXuNew.Latitude);
|
|
|
- binding.tvAddr.setText(locationUtilXuNew.addr == null ? "" : locationUtilXuNew.addr);
|
|
|
- }
|
|
|
+ locationUtilXuNew = info;
|
|
|
+ binding.tvLat.setText("经度:" + locationUtilXuNew.Longtitude + " 纬度:" + locationUtilXuNew.Latitude);
|
|
|
+ binding.tvAddr.setText(locationUtilXuNew.addr == null ? "" : locationUtilXuNew.addr);
|
|
|
}
|
|
|
|
|
|
@Override
|