@Override
        public void onFocusChange(final View v, final boolean hasFocus) {
            if (!hasFocus) {
                final EditText editText = (EditText) v;
                if (editText.length() > 0) {
                    editText.setText(padZeros(editText));
                }
            }
        }
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