Merge "Fix referring wrong TypedArray"

This commit is contained in:
Tadashi G. Takaoka 2011-11-04 03:47:01 -07:00 committed by Android (Google) Code Review
commit 6c1c546a98

View file

@ -169,7 +169,7 @@ public class KeyboardBuilder<KP extends KeyboardParams> {
keyboardAttr.recycle();
TypedArray keyAttr = res.obtainAttributes(Xml.asAttributeSet(parser),
R.styleable.Keyboard_Key);
mDefaultKeyWidth = KeyboardBuilder.getDimensionOrFraction(keyboardAttr,
mDefaultKeyWidth = KeyboardBuilder.getDimensionOrFraction(keyAttr,
R.styleable.Keyboard_Key_keyWidth, params.mBaseWidth, params.mDefaultKeyWidth);
keyAttr.recycle();