|
|
|
@ -196,11 +196,11 @@ class CreateEditPointActvity : BaseBindingActivity<ActivityNewUiCreateEditPointB |
|
|
|
|
) |
|
|
|
|
} else if (ProjectType.isHeightTraverse(projectType)) { |
|
|
|
|
setBaseTitleHint( |
|
|
|
|
R.string.longitude, |
|
|
|
|
R.string.latitude, |
|
|
|
|
R.string.x_coord, |
|
|
|
|
R.string.y_coord, |
|
|
|
|
R.string.elevation, |
|
|
|
|
R.string.please_input_longitude, |
|
|
|
|
R.string.please_input_latitude, |
|
|
|
|
R.string.please_input_x, |
|
|
|
|
R.string.please_input_y, |
|
|
|
|
R.string.please_enter_elevation |
|
|
|
|
) |
|
|
|
|
} else { |
|
|
|
@ -319,7 +319,7 @@ class CreateEditPointActvity : BaseBindingActivity<ActivityNewUiCreateEditPointB |
|
|
|
|
private fun saveRecordForEdit(pointRecord: PointRecord, success: () -> Unit) { |
|
|
|
|
lifecycleScope.launch(Dispatchers.IO) { |
|
|
|
|
val projectType = getProjectType() |
|
|
|
|
if (ProjectType.isLevel(projectType) || ProjectType.isHeightTraverse(projectType)) { |
|
|
|
|
if (ProjectType.isLevel(projectType)) { |
|
|
|
|
pointRecord.setLongitude(getXDouble()) |
|
|
|
|
pointRecord.setLatitude(getYDouble()) |
|
|
|
|
} else { |
|
|
|
@ -363,7 +363,7 @@ class CreateEditPointActvity : BaseBindingActivity<ActivityNewUiCreateEditPointB |
|
|
|
|
orderIndex: Int, |
|
|
|
|
): PointRecord { |
|
|
|
|
val projectType = getProjectType() |
|
|
|
|
return if (ProjectType.isLevel(projectType) || ProjectType.isHeightTraverse(projectType)) { |
|
|
|
|
return if (ProjectType.isLevel(projectType)) { |
|
|
|
|
PointRecord.createLlhPoint(projectId, pointType, name, x, y, z) |
|
|
|
|
} else { |
|
|
|
|
PointRecord.point( |
|
|
|
|