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:
@@ -899,7 +899,7 @@ public class ManageApplications extends InstrumentedFragment
|
|||||||
if (locales.size() == 0) {
|
if (locales.size() == 0) {
|
||||||
locales = new LocaleList(Locale.ENGLISH);
|
locales = new LocaleList(Locale.ENGLISH);
|
||||||
}
|
}
|
||||||
AlphabeticIndex index = new AlphabeticIndex<>(locales.getPrimary());
|
AlphabeticIndex index = new AlphabeticIndex<>(locales.get(0));
|
||||||
int localeCount = locales.size();
|
int localeCount = locales.size();
|
||||||
for (int i = 1; i < localeCount; i++) {
|
for (int i = 1; i < localeCount; i++) {
|
||||||
index.addLabels(locales.get(i));
|
index.addLabels(locales.get(i));
|
||||||
|
Reference in New Issue
Block a user