private void saveAndFinishDialog() {
        if (!areCurrentCoordinatesValid(true)) {
            return;
        }
        inputData.setCalculatedCoordinate(null);
        inputData.setGeopoint(gp);
        ((CoordinateUpdate) requireActivity()).updateCoordinates(inputData);
        dismiss();
    }
Max lengths, depending on currentFormat
<br>
formatPlain = disabled
DEG MIN SEC SUB
formatDeg 2/3 5 - -
formatMin 2/3 2 3 -
formatSec 2/3 2 2 3
main/src/main/java/cgeo/geocaching/ui/dialog/CoordinatesInputDialog.java