Home | History | Annotate | Download | only in app

Lines Matching defs:locale

36 import java.util.Locale;
64 private Locale mDisplayLocale = null;
138 * Overrides the locale used to display localized labels. Setting the locale to null will reset
139 * the Adapter to use the default locale for the labels.
141 public void setDisplayLocale(@NonNull Context context, @Nullable Locale locale) {
142 if (locale == null) {
145 } else if (!locale.equals(mDisplayLocale)) {
146 mDisplayLocale = locale;
148 configOverride.setLocale(locale);
188 mDisplayLocale != null ? mDisplayLocale : Locale.getDefault());
196 TextView text = (TextView) convertView.findViewById(R.id.locale);
229 * Sorts the items in the adapter using a locale-aware comparator.
230 * @param comp The locale-aware comparator to use.
252 // TODO: decide if we should use the string's locale
253 Locale locale = Locale.getDefault();
254 String prefixString = LocaleHelper.normalizeForSearch(prefix.toString(), locale);
262 value.getFullNameInUiLanguage(), locale);
264 value.getFullNameNative(), locale);