Bug 575007 - When using the HTC Sense Keyboard on password boxes text suggestions appear, r=mwu a=blocking-fennec

This commit is contained in:
Jim Chen
2010-08-04 15:59:22 -07:00
parent b4726f1814
commit c16141ff9d
2 changed files with 11 additions and 1 deletions

View File

@@ -82,6 +82,8 @@ class GeckoSurfaceView
mBufferHeight = 0;
mSurfaceLock = new ReentrantLock();
mIMEState = IME_STATE_DISABLED;
}
protected void finalize() throws Throwable {
@@ -238,6 +240,9 @@ class GeckoSurfaceView
outAttrs.inputType = InputType.TYPE_CLASS_TEXT |
InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS;
if (mIMEState == IME_STATE_PASSWORD)
outAttrs.inputType |= InputType.TYPE_TEXT_VARIATION_PASSWORD;
return inputConnection;
}
@@ -307,6 +312,10 @@ class GeckoSurfaceView
int mBufferHeight;
// IME stuff
public static final int IME_STATE_DISABLED = 0;
public static final int IME_STATE_ENABLED = 1;
public static final int IME_STATE_PASSWORD = 2;
GeckoInputConnection inputConnection;
boolean mIMEFocus;
int mIMEState;