@@ -69,7 +69,7 @@ public class Keyboard
6969 private final Context applicationContext ;
7070 private int width ;
7171 private int height , naturalHeight ;
72- private final List <Key > keyList ;
72+ private final List <Key > keys ;
7373 public int fillColour ;
7474
7575 // Key properties
@@ -107,15 +107,15 @@ public Keyboard(final Context context, final int layoutResourceId)
107107 defaultKeyTextSizePx = (int ) Valuey .pxFromSp (DEFAULT_KEY_TEXT_SIZE_SP , displayMetrics );
108108 defaultKeyPreviewMarginYPx = (int ) Valuey .pxFromDp (DEFAULT_KEY_PREVIEW_MARGIN_Y_DP , displayMetrics );
109109
110- keyList = new ArrayList <>();
110+ keys = new ArrayList <>();
111111
112112 makeKeyboard (context , resources .getXml (layoutResourceId ));
113113 adjustKeyboardHeight ();
114114 }
115115
116- public List <Key > getKeyList ()
116+ public List <Key > getKeys ()
117117 {
118- return keyList ;
118+ return keys ;
119119 }
120120
121121 public int getWidth ()
@@ -176,7 +176,7 @@ private void makeKeyboard(final Context context, final XmlResourceParser xmlReso
176176 case KEY_TAG :
177177 inKey = true ;
178178 key = new Key (row , x , y , resources , xmlResourceParser );
179- keyList .add (key );
179+ keys .add (key );
180180 break ;
181181 }
182182 break ;
@@ -210,7 +210,7 @@ else if (inRow)
210210 public void correctKeyboardWidth (int inputContainerWidth )
211211 {
212212 final float correctionFactor = ((float ) inputContainerWidth ) / screenWidth ;
213- for (final Key key : keyList )
213+ for (final Key key : keys )
214214 {
215215 key .x = (int ) (key .naturalX * correctionFactor );
216216 key .width = (int ) (key .naturalWidth * correctionFactor );
@@ -224,7 +224,7 @@ public void adjustKeyboardHeight()
224224 final float userAdjustmentFactor = MainActivity .keyboardHeightAdjustmentProgressToFactor (userAdjustmentProgress );
225225 final float actualAdjustmentFactor =
226226 Math .min (userAdjustmentFactor , KEYBOARD_HEIGHT_MAX_FRACTION * screenHeight / naturalHeight );
227- for (final Key key : keyList )
227+ for (final Key key : keys )
228228 {
229229 key .y = (int ) (key .naturalY * actualAdjustmentFactor );
230230 key .height = (int ) (key .naturalHeight * actualAdjustmentFactor );
0 commit comments