mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am 5179608e: Merge "Use ArrayList constructor directly"
* commit '5179608e19dfeffe4fd657d9a7c671fb932bd487': Use ArrayList constructor directly
This commit is contained in:
commit
0735d17e0c
@ -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…
x
Reference in New Issue
Block a user