Bug 1017651 - Reshow cursor once autocomplete text is gone; r=wesj

This commit is contained in:
Jim Chen 2014-06-04 12:19:19 -04:00
parent 639e976d1d
commit 781e6755f9

View File

@ -260,6 +260,11 @@ public class ToolbarEditText extends CustomEditText
// replace() preserves the autocomplete spans that we set before.
text.replace(autoCompleteStart, textLength, result, autoCompleteStart, resultLength);
// Reshow the cursor if there is no longer any autocomplete text.
if (autoCompleteStart == resultLength) {
setCursorVisible(true);
}
endSettingAutocomplete();
} else {