am 5179608e: Merge "Use ArrayList constructor directly"
* commit '5179608e19dfeffe4fd657d9a7c671fb932bd487': Use ArrayList constructor directlymain
commit
0735d17e0c
|
@ -213,8 +213,7 @@ public class DynamicGridKeyboard extends Keyboard {
|
|||
if (mCachedGridKeys != null) {
|
||||
return mCachedGridKeys;
|
||||
}
|
||||
final ArrayList<Key> cachedKeys = CollectionUtils.newArrayList(mGridKeys.size());
|
||||
cachedKeys.addAll(mGridKeys);
|
||||
final ArrayList<Key> cachedKeys = new ArrayList<Key>(mGridKeys);
|
||||
mCachedGridKeys = Collections.unmodifiableList(cachedKeys);
|
||||
return mCachedGridKeys;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue