@Test @Config(qualifiers = "fr") public void findBestMatchingLocaleForLanguage_a_non_build_config_language_defaults_to_device_value_which_is_supported_directly() { String unsupportedLanguage = getUnsupportedLanguage(); assertEquals(Locale.FRENCH, LocaleParser.findBestMatchingLocaleForLanguage(unsupportedLanguage)); }
static Locale findBestMatchingLocaleForLanguage(@Nullable String language) { final Locale locale = LanguageString.parseLocale(language); if (appSupportsTheExactLocale(locale)) { return locale; } else { return findBestSystemLocale(); } }
LocaleParser { static Locale findBestMatchingLocaleForLanguage(@Nullable String language) { final Locale locale = LanguageString.parseLocale(language); if (appSupportsTheExactLocale(locale)) { return locale; } else { return findBestSystemLocale(); } } }
LocaleParser { static Locale findBestMatchingLocaleForLanguage(@Nullable String language) { final Locale locale = LanguageString.parseLocale(language); if (appSupportsTheExactLocale(locale)) { return locale; } else { return findBestSystemLocale(); } } private  LocaleParser(); }
LocaleParser { static Locale findBestMatchingLocaleForLanguage(@Nullable String language) { final Locale locale = LanguageString.parseLocale(language); if (appSupportsTheExactLocale(locale)) { return locale; } else { return findBestSystemLocale(); } } private  LocaleParser();  }
LocaleParser { static Locale findBestMatchingLocaleForLanguage(@Nullable String language) { final Locale locale = LanguageString.parseLocale(language); if (appSupportsTheExactLocale(locale)) { return locale; } else { return findBestSystemLocale(); } } private  LocaleParser();   }