|
|
|
@ -157,28 +157,27 @@ public class RtkBaseCorrectActivity extends BaseSurveyNewActivity { |
|
|
|
|
binding.activityRtkCorrectBtnOpen1.setOnClickListener(v -> { |
|
|
|
|
binding.activityRtkCorrectEt0.requestFocus();//作用:输入框不聚焦,防止实测坐标后页面自动滑动到顶部
|
|
|
|
|
CommonUtils.hideSoftInput(); |
|
|
|
|
new MaterialDialog.Builder(RtkBaseCorrectActivity.this) |
|
|
|
|
.title(R.string.data_source) |
|
|
|
|
.items(new String[]{getString(R.string.global_control_point), getString(R.string.point_survey_point_library), getString(R.string.staking_point_library)}) |
|
|
|
|
.itemsCallback((dialog, itemView, which, text) -> { |
|
|
|
|
switch (which) { |
|
|
|
|
case 0: |
|
|
|
|
ControlPointsNewActivity.pickPoint(this, true, (name, code, x, y, z, remarks) -> { |
|
|
|
|
onPicked(name, x, y, z); |
|
|
|
|
}); |
|
|
|
|
break; |
|
|
|
|
case 1: |
|
|
|
|
CoordinatePointsLibraryActivity.pickPoint(RtkBaseCorrectActivity.this, (name, code, x, y, z, b, l, h) -> { |
|
|
|
|
onPicked(name, x, y, z); |
|
|
|
|
}); |
|
|
|
|
break; |
|
|
|
|
case 2: |
|
|
|
|
StakingNewJobActivity.pickPoint(RtkBaseCorrectActivity.this, (name, x, y, z) -> { |
|
|
|
|
onPicked(name, x, y, z); |
|
|
|
|
}); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
}).show(); |
|
|
|
|
// 放样点库
|
|
|
|
|
StakingNewJobActivity.pickPoint(RtkBaseCorrectActivity.this, (name, x, y, z) -> { |
|
|
|
|
onPicked(name, x, y, z); |
|
|
|
|
}); |
|
|
|
|
// new MaterialDialog.Builder(RtkBaseCorrectActivity.this)
|
|
|
|
|
// .title(R.string.data_source)
|
|
|
|
|
// .items(new String[]{ getString(R.string.point_survey_point_library), getString(R.string.staking_point_library)})
|
|
|
|
|
// .itemsCallback((dialog, itemView, which, text) -> {
|
|
|
|
|
// switch (which) {
|
|
|
|
|
// case 0:
|
|
|
|
|
// CoordinatePointsLibraryActivity.pickPoint(RtkBaseCorrectActivity.this, (name, code, x, y, z, b, l, h) -> {
|
|
|
|
|
// onPicked(name, x, y, z);
|
|
|
|
|
// });
|
|
|
|
|
// break;
|
|
|
|
|
// case 1:
|
|
|
|
|
// StakingNewJobActivity.pickPoint(RtkBaseCorrectActivity.this, (name, x, y, z) -> {
|
|
|
|
|
// onPicked(name, x, y, z);
|
|
|
|
|
// });
|
|
|
|
|
// break;
|
|
|
|
|
// }
|
|
|
|
|
// }).show();
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
initMaterialEditTextColor(); |
|
|
|
|