public static void dismiss(@Nullable final ProgressDialog dialog) {
        if (dialog == null) {
            return;
        }
        if (dialog.isShowing()) {
            dialog.dismiss();
        }
    }
Move the cursor to the end of the input field.
main/src/main/java/cgeo/geocaching/ui/dialog/Dialogs.java