@Test public void testDispatchConfigurationChanged() { final Localer localer = new Localer(Locale.FRENCH); localer.dispatchConfigurationChanged(resources.getConfiguration(), resources); assertThat(Locale.getDefault(), is(Locale.FRENCH)); assertThat(resources.getConfiguration().locale, is(Locale.FRENCH)); }
public void dispatchConfigurationChanged(@NonNull final Configuration newConfig, @NonNull final Resources resources) { this.updateLocale(new Configuration(newConfig), resources); }
Localer { public void dispatchConfigurationChanged(@NonNull final Configuration newConfig, @NonNull final Resources resources) { this.updateLocale(new Configuration(newConfig), resources); } }
Localer { public void dispatchConfigurationChanged(@NonNull final Configuration newConfig, @NonNull final Resources resources) { this.updateLocale(new Configuration(newConfig), resources); } Localer();  Localer(@NonNull final Locale locale); }
Localer { public void dispatchConfigurationChanged(@NonNull final Configuration newConfig, @NonNull final Resources resources) { this.updateLocale(new Configuration(newConfig), resources); } Localer();  Localer(@NonNull final Locale locale); void dispatchApplicationCreated(@NonNull final Resources resources); void dispatchConfigurationChanged(@NonNull final Configuration newConfig, @NonNull final Resources resources); void setLocale(@NonNull final Locale locale, @NonNull final Resources resources); @NonNull Locale getLocale(); }
Localer { public void dispatchConfigurationChanged(@NonNull final Configuration newConfig, @NonNull final Resources resources) { this.updateLocale(new Configuration(newConfig), resources); } Localer();  Localer(@NonNull final Locale locale); void dispatchApplicationCreated(@NonNull final Resources resources); void dispatchConfigurationChanged(@NonNull final Configuration newConfig, @NonNull final Resources resources); void setLocale(@NonNull final Locale locale, @NonNull final Resources resources); @NonNull Locale getLocale();  }