Revert "Remove unnecessary LocaleController calls"

This reverts commit 6d26bbd3fb.
This commit is contained in:
B. Petersen
2017-04-22 10:16:35 +02:00
parent 806ed69432
commit 2af0e1ffb6
@@ -175,6 +175,13 @@ public class ApplicationLoader extends Application {
// it goes away which also inititialized the app indirectly by calling this function)
applicationContext.startService(new Intent(applicationContext, KeepAliveService.class));
// init locale
try {
LocaleController.getInstance();
} catch (Exception e) {
e.printStackTrace();
}
// track screen on/ff
try {
final IntentFilter filter = new IntentFilter(Intent.ACTION_SCREEN_ON);
@@ -222,11 +229,11 @@ public class ApplicationLoader extends Application {
MediaController.getInstance();
}
// @TODO: Is this method still needed after the removal of custom Locale handling? I think it can be removed. TQ
@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
try {
LocaleController.getInstance().onDeviceConfigurationChange(newConfig);
AndroidUtilities.checkDisplaySize();
} catch (Exception e) {
e.printStackTrace();