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