зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1017651 - Reshow cursor once autocomplete text is gone; r=wesj
This commit is contained in:
Родитель
fad6d25820
Коммит
820bafdf74
|
@ -260,6 +260,11 @@ public class ToolbarEditText extends CustomEditText
|
||||||
// replace() preserves the autocomplete spans that we set before.
|
// replace() preserves the autocomplete spans that we set before.
|
||||||
text.replace(autoCompleteStart, textLength, result, autoCompleteStart, resultLength);
|
text.replace(autoCompleteStart, textLength, result, autoCompleteStart, resultLength);
|
||||||
|
|
||||||
|
// Reshow the cursor if there is no longer any autocomplete text.
|
||||||
|
if (autoCompleteStart == resultLength) {
|
||||||
|
setCursorVisible(true);
|
||||||
|
}
|
||||||
|
|
||||||
endSettingAutocomplete();
|
endSettingAutocomplete();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче