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
This commit is contained in:
Roozbeh Pournader
2016-02-04 15:55:41 -08:00
parent a1242bcc93
commit 2b7d4cd49f

View File

@@ -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));