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

Skip to content
Commit 7a712372 authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

Replace HashMap with ArrayMap in LocaleUtils

LocaleUtils#filterByLanguage() always perform sort before returning
the result hence enumeration order of HashMap/ArrayMap does not affect
the final result.  Hence we should be able to safely replace HashMap
with ArrayMap.

Also, ArrayMap#valueAt() allows us to copy values into an array
without iterator object.

Bug: 119839847
Test: atest FrameworksServicesTests:com.android.server.inputmethod.LocaleUtilsTest
Change-Id: I898ffcf18110538cbb777e85df21c815e8ed030c
parent 9b89a0bd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment