Merge "Null locale causing the VTS fail."

This commit is contained in:
Treehugger Robot
2019-01-07 04:19:22 +00:00
committed by Gerrit Code Review

View File

@@ -147,6 +147,9 @@ public final class AccessibilityIterators {
@Override
public void onConfigurationChanged(Configuration globalConfig) {
final Locale locale = globalConfig.getLocales().get(0);
if (locale == null) {
return;
}
if (!mLocale.equals(locale)) {
mLocale = locale;
onLocaleChanged(locale);