/** @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; }
protected Locale getLocale() { if (localeProvider != null) { Locale locale = localeProvider.getLocale(); return locale != null ? locale : Locale.getDefault(); } else { return Locale.getDefault(); } }