@Override
    public void onTakeFocus(final TextView view, @NonNull final Spannable text, final int dir) {
        if ((dir & (View.FOCUS_FORWARD | View.FOCUS_DOWN)) != 0) {
            if (view.getLayout() == null) {
                // This shouldn't be null, but do something sensible if it is.
                Selection.setSelection(text, text.length());
            }
        } else {
            Selection.setSelection(text, text.length());
        }
    }
{@code LinkMovementMethod} with built-in suppression of errors for links, where the URL cannot be handled
correctly by Android.
main/src/main/java/cgeo/geocaching/ui/AnchorAwareLinkMovementMethod.java