Bug 767354 - Typing 1 character in password fields will insert 2 characters. r=cpeterson

This commit is contained in:
Makoto Kato
2012-07-09 13:03:38 -07:00
parent 2547c51f5a
commit acf92a61cf

View File

@@ -450,14 +450,16 @@ public class GeckoInputConnection
return (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
}
public void notifyTextChange(InputMethodManager imm, String text,
int start, int oldEnd, int newEnd) {
protected void notifyTextChange(InputMethodManager imm, String text,
int start, int oldEnd, int newEnd) {
if (!mBatchMode) {
if (!text.contentEquals(mEditable)) {
if (DEBUG) Log.d(LOGTAG, String.format(
". . . notifyTextChange: current mEditable=\"%s\"",
mEditable.toString()));
setEditable(text);
// Editable will be updated by IME event
if (!hasCompositionString())
setEditable(text);
}
}