Fix mismatched attribute in KeyboardView

This is a followup of Iea7f8f34.

Bug: 5023981
Change-Id: Ice6d949581aea7ca68799be2b91ff28234dd88d6
This commit is contained in:
Tadashi G. Takaoka 2011-08-30 14:55:56 +09:00
parent 60dfe896d4
commit 3e63fbe400

View file

@ -223,7 +223,7 @@ public class KeyboardView extends View implements PointerTracker.DrawingProxy {
public KeyDrawParams(TypedArray a) { public KeyDrawParams(TypedArray a) {
mKeyBackground = a.getDrawable(R.styleable.KeyboardView_keyBackground); mKeyBackground = a.getDrawable(R.styleable.KeyboardView_keyBackground);
if (a.hasValue(R.styleable.KeyboardView_keyLabelSize)) { if (a.hasValue(R.styleable.KeyboardView_keyLetterSize)) {
mKeyLetterRatio = UNDEFINED_RATIO; mKeyLetterRatio = UNDEFINED_RATIO;
mKeyLetterSize = a.getDimensionPixelSize( mKeyLetterSize = a.getDimensionPixelSize(
R.styleable.KeyboardView_keyLetterRatio, 0); R.styleable.KeyboardView_keyLetterRatio, 0);