mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Use ArrayList constructor directly
This is a follow up of I85a0b18d2d. Change-Id: Ia7a642bb6e0015242d6e046019b3973226a0add2
This commit is contained in:
parent
616b84c93e
commit
965621574d
@ -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
Block a user