Merge "Clear SuggestionsPopupWindow.mSpansLengths after it is used."

This commit is contained in:
Yohei Yukawa
2015-08-17 21:44:24 +00:00
committed by Android (Google) Code Review

View File

@@ -2793,6 +2793,8 @@ public class Editor {
// The suggestions are sorted according to their types (easy correction first, then
// misspelled) and to the length of the text that they cover (shorter first).
Arrays.sort(suggestionSpans, mSuggestionSpanComparator);
mSpansLengths.clear();
return suggestionSpans;
}