Merge "Fix multi-touch input in auto-caps field" into jb-mr1-dev
commit
76c242a1f6
|
@ -604,9 +604,6 @@ public class Keyboard {
|
||||||
}
|
}
|
||||||
|
|
||||||
public float getKeyX(TypedArray keyAttr) {
|
public float getKeyX(TypedArray keyAttr) {
|
||||||
final int widthType = Builder.getEnumValue(keyAttr,
|
|
||||||
R.styleable.Keyboard_Key_keyWidth, KEYWIDTH_NOT_ENUM);
|
|
||||||
|
|
||||||
final int keyboardRightEdge = mParams.mOccupiedWidth
|
final int keyboardRightEdge = mParams.mOccupiedWidth
|
||||||
- mParams.mHorizontalEdgesPadding;
|
- mParams.mHorizontalEdgesPadding;
|
||||||
if (keyAttr.hasValue(R.styleable.Keyboard_Key_keyXPos)) {
|
if (keyAttr.hasValue(R.styleable.Keyboard_Key_keyXPos)) {
|
||||||
|
|
|
@ -408,7 +408,7 @@ public class PointerTracker {
|
||||||
if (mDrawingProxy != null) {
|
if (mDrawingProxy != null) {
|
||||||
setReleasedKeyGraphics(mCurrentKey);
|
setReleasedKeyGraphics(mCurrentKey);
|
||||||
}
|
}
|
||||||
mCurrentKey = newKey;
|
// Keep {@link #mCurrentKey} that comes from previous keyboard.
|
||||||
}
|
}
|
||||||
final int keyQuarterWidth = mKeyboard.mMostCommonKeyWidth / 4;
|
final int keyQuarterWidth = mKeyboard.mMostCommonKeyWidth / 4;
|
||||||
mKeyQuarterWidthSquared = keyQuarterWidth * keyQuarterWidth;
|
mKeyQuarterWidthSquared = keyQuarterWidth * keyQuarterWidth;
|
||||||
|
|
Loading…
Reference in New Issue