Name Description Size
LocaleAwareAppCompatActivity.java Is called whenever the application locale has changed. Your Activity must either update all localised Strings, or replace itself with an updated version. 3161
LocaleAwareApplication.java We need to do locale work here, because we need to intercept each hit to onConfigurationChanged. 1362
LocaleAwareFragment.java Is called whenever the application locale has changed. Your fragment must either update all localised Strings, or replace itself with an updated version. 1367
LocaleManager.java This class manages persistence, application, and otherwise handling of user-specified locales. Of note: * It's a singleton, because its scope extends to that of the application, and definitionally all changes to the locale of the app must go through this. * It's lazy. * It relies on using the SharedPreferences file owned by the app for performance. 13380
Locales.java This is a helper class to do typical locale switching operations without hitting StrictMode errors or adding boilerplate to common activity subclasses. Either call {@link Locales#initializeLocale(Context)} in your <code>onCreate</code> method, or inherit from <code>LocaleAwareFragmentActivity</code> or <code>LocaleAwareActivity</code>. 5339