code: public static final void extendSelection(Spannable text, int index) {
          if (text.getSpanStart(SELECTION_END) != index)
              text.setSpan(SELECTION_END, index, index, Spanned.SPAN_POINT_POINT);
      }
docs: Move the selection edge to offset <code>index</code>.