Merge "Bug 5255124: Move cursor to the end of a word after correction popup alternates selection"

This commit is contained in:
Gilles Debunne
2011-09-09 16:01:08 -07:00
committed by Android (Google) Code Review

View File

@@ -9914,6 +9914,9 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
suggestionSpansFlags[i]);
}
}
// Move cursor at the end of the replacement word
Selection.setSelection(editable, spanEnd + lengthDifference);
}
}
hide();