Bug 767354 - Typing 1 character in password fields will insert 2 characters. r=cpeterson
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user