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

Commit 2b7d4cd4 authored by Roozbeh Pournader's avatar Roozbeh Pournader
Browse files

Replace LocaleList#getPrimary() with get(0)

getPrimary() is removed from the API due to potential confusion about
what it means.

Bug: 26984092
Change-Id: If218de84251461016f4ac06aa9a1cb8610b90d39
parent a1242bcc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -899,7 +899,7 @@ public class ManageApplications extends InstrumentedFragment
                        if (locales.size() == 0) {
                            locales = new LocaleList(Locale.ENGLISH);
                        }
                        AlphabeticIndex index = new AlphabeticIndex<>(locales.getPrimary());
                        AlphabeticIndex index = new AlphabeticIndex<>(locales.get(0));
                        int localeCount = locales.size();
                        for (int i = 1; i < localeCount; i++) {
                            index.addLabels(locales.get(i));