parent
3701033061
commit
71dd8f07a1
|
|
@ -196,9 +196,11 @@ public class App extends Application {
|
|||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public void onConfigurationChanged(@NonNull Configuration newConfig) {
|
||||
if (getResources().getConfiguration().diff(newConfig) != 0) {
|
||||
LocaleDelegate.setDefaultLocale(getLocale());
|
||||
newConfig.setLocale(getLocale());
|
||||
getResources().updateConfiguration(newConfig, getResources().getDisplayMetrics());
|
||||
}
|
||||
super.onConfigurationChanged(newConfig);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue