author | Jim Chen <nchen@mozilla.com> |
Mon, 30 Jun 2014 13:24:06 -0400 | |
changeset 191502 | 78517fe424721a392e0d7f78cdcfb315036a55a4 |
parent 191501 | 2b89f72bc855d709fcfc6509966a52e3e16bdace |
child 191503 | c94f041648c656e75e005f81c51fee4acff4363f |
push id | 27052 |
push user | kwierso@gmail.com |
push date | Tue, 01 Jul 2014 01:22:26 +0000 |
treeherder | mozilla-central@a3af97c421d3 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | wesj |
bugs | 1026788 |
milestone | 33.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/mobile/android/base/toolbar/ToolbarEditText.java +++ b/mobile/android/base/toolbar/ToolbarEditText.java @@ -387,16 +387,19 @@ public class ToolbarEditText extends Cus // i.e. when the composing text is getting shorter. if (composingStart >= 0 && composingEnd >= 0 && (composingEnd - composingStart) > text.length() && removeAutocomplete(editable)) { // Make the IME aware that we interrupted the setComposingText call, // by having finishComposingText() send change notifications to the IME. finishComposingText(); + if (Build.VERSION.SDK_INT >= 9) { + setComposingRegion(composingStart, composingEnd); + } return true; } return false; } @Override public boolean commitText(CharSequence text, int newCursorPosition) { if (removeAutocompleteOnComposing(text)) {