/** @return the country code of the user's currently selected locale. */
 private String getLocaleBasedCountryIso() {
   Locale defaultLocale = mLocaleProvider.getDefaultLocale();
   if (defaultLocale != null) {
     return defaultLocale.getCountry();
   }
   return null;
 }
Exemplo n.º 2
0
 protected Locale getLocale() {
   if (localeProvider != null) {
     Locale locale = localeProvider.getLocale();
     return locale != null ? locale : Locale.getDefault();
   } else {
     return Locale.getDefault();
   }
 }