Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96562157 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Use ArrayList constructor directly

This is a follow up of I85a0b18d2d.

Change-Id: Ia7a642bb6e0015242d6e046019b3973226a0add2
parent 616b84c9
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;
        }