@SuppressWarnings({"PMD.NPathComplexity", "PMD.ExcessiveMethodLength"})
    private void config(final boolean plain, final String sep1, final String sep2, final String sep3) {
        eLatFrame.setVisibility(plain ? View.VISIBLE : View.GONE);
        eLonFrame.setVisibility(plain ? View.VISIBLE : View.GONE);
        binding.input.latLonFrame.setVisibility(plain ? View.GONE : View.VISIBLE);
        if (!plain) {
            final boolean bSecVisible = !StringUtils.equals(sep1, ".");
            final boolean bFracVisible = StringUtils.equals(sep3, ".");

            tLatSep1.setText(sep1);
            tLonSep1.setText(sep1);
            eLatMin.setHint(bSecVisible ? R.string.cc_hint_minutes : R.string.cc_hint_fraction);
            eLatMin.setGravity(bSecVisible ? Gravity.RIGHT : Gravity.NO_GRAVITY);
            eLonMin.setHint(bSecVisible ? R.string.cc_hint_minutes : R.string.cc_hint_fraction);
            eLonMin.setGravity(bSecVisible ? Gravity.RIGHT : Gravity.NO_GRAVITY);

            tLatSep2.setText(sep2);
            tLonSep2.setText(sep2);
            eLatSec.setVisibility(bSecVisible ? View.VISIBLE : View.GONE);
            eLatSec.setHint(bFracVisible ? R.string.cc_hint_seconds : R.string.cc_hint_fraction);
            eLatSec.setGravity(bFracVisible ? Gravity.RIGHT : Gravity.LEFT);
            eLonSec.setVisibility(bSecVisible ? View.VISIBLE : View.GONE);
            eLonSec.setHint(bFracVisible ? R.string.cc_hint_seconds : R.string.cc_hint_fraction);
            eLonSec.setGravity(bFracVisible ? Gravity.RIGHT : Gravity.LEFT);

            tLatSep3.setText(sep3);
            tLonSep3.setText(sep3);
            eLatSub.setVisibility(bFracVisible ? View.VISIBLE : View.GONE);
            eLatSub.setHint(R.string.cc_hint_fraction);
            eLonSub.setVisibility(bFracVisible ? View.VISIBLE : View.GONE);
            eLonSub.setHint(R.string.cc_hint_fraction);
        }
    }
Provides a dialog to enter coordinates in different formats.
Usage:
1. open the coordinate selection dialog: call CoordinatesInputDialog.show(getSupportFragmentManager(), null, null);
2. in your activity implement CoordinatesInputDialog.CoordinateUpdate, closing the dialog calls public void updateCoordinates(@NonNull final Geopoint gp)
main/src/main/java/cgeo/geocaching/ui/dialog/CoordinatesInputDialog.java