Fix missing right edge flag

Bug: 5062972
Change-Id: I2daffdd58802c6173696fe2417e6efcbef66d7bf
This commit is contained in:
Tadashi G. Takaoka 2011-07-21 14:32:16 -07:00
parent a3dd3887c9
commit 419b90fe86

View file

@ -632,15 +632,15 @@ public class KeyboardParser {
private void endRow() { private void endRow() {
if (mCurrentRow == null) if (mCurrentRow == null)
throw new InflateException("orphant end row tag"); throw new InflateException("orphant end row tag");
if (mRightEdgeKey != null) {
mRightEdgeKey.addEdgeFlags(Keyboard.EDGE_RIGHT);
mRightEdgeKey = null;
}
setSpacer(mCurrentX, mHorizontalEdgesPadding); setSpacer(mCurrentX, mHorizontalEdgesPadding);
if (mCurrentX > mMaxRowWidth) if (mCurrentX > mMaxRowWidth)
mMaxRowWidth = mCurrentX; mMaxRowWidth = mCurrentX;
mCurrentY += mCurrentRow.mDefaultHeight; mCurrentY += mCurrentRow.mDefaultHeight;
mCurrentRow = null; mCurrentRow = null;
if (mRightEdgeKey != null) {
mRightEdgeKey.addEdgeFlags(Keyboard.EDGE_RIGHT);
mRightEdgeKey = null;
}
} }
private void endKey(Key key) { private void endKey(Key key) {