Loading core/java/android/widget/Editor.java +1 −2 Original line number Diff line number Diff line Loading @@ -2710,8 +2710,7 @@ public class Editor { suggestions[suggestionInfo.suggestionIndex] = originalText; // Restore previous SuggestionSpans final int realSuggestionLength = mTextView.getText().toString().length(); final int lengthDifference = realSuggestionLength - (spanEnd - spanStart); final int lengthDifference = suggestion.length() - (spanEnd - spanStart); for (int i = 0; i < length; i++) { // Only spans that include the modified region make sense after replacement // Spans partially included in the replaced region are removed, there is no Loading Loading
core/java/android/widget/Editor.java +1 −2 Original line number Diff line number Diff line Loading @@ -2710,8 +2710,7 @@ public class Editor { suggestions[suggestionInfo.suggestionIndex] = originalText; // Restore previous SuggestionSpans final int realSuggestionLength = mTextView.getText().toString().length(); final int lengthDifference = realSuggestionLength - (spanEnd - spanStart); final int lengthDifference = suggestion.length() - (spanEnd - spanStart); for (int i = 0; i < length; i++) { // Only spans that include the modified region make sense after replacement // Spans partially included in the replaced region are removed, there is no Loading