Commit 8351b066 authored by DrKLO's avatar DrKLO

Addition to previous commit

parent 0f53d75a
...@@ -82,7 +82,7 @@ android { ...@@ -82,7 +82,7 @@ android {
defaultConfig { defaultConfig {
minSdkVersion 8 minSdkVersion 8
targetSdkVersion 19 targetSdkVersion 19
versionCode 209 versionCode 211
versionName "1.4.8" versionName "1.4.8"
} }
} }
...@@ -147,7 +147,7 @@ public class LocaleController { ...@@ -147,7 +147,7 @@ public class LocaleController {
} }
public void applyLanguage(LocaleInfo localeInfo, boolean override) { public void applyLanguage(LocaleInfo localeInfo, boolean override) {
if (localeInfo == null || localeInfo == currentLocaleInfo) { if (localeInfo == null) {
return; return;
} }
try { try {
......
...@@ -120,7 +120,11 @@ public class ApplicationLoader extends Application { ...@@ -120,7 +120,11 @@ public class ApplicationLoader extends Application {
lastPauseTime = System.currentTimeMillis(); lastPauseTime = System.currentTimeMillis();
applicationContext = getApplicationContext(); applicationContext = getApplicationContext();
NativeLoader.initNativeLibs(this); NativeLoader.initNativeLibs(this);
LocaleController.getInstance(); try {
LocaleController.getInstance();
} catch (Exception e) {
e.printStackTrace();
}
applicationHandler = new Handler(applicationContext.getMainLooper()); applicationHandler = new Handler(applicationContext.getMainLooper());
...@@ -142,8 +146,12 @@ public class ApplicationLoader extends Application { ...@@ -142,8 +146,12 @@ public class ApplicationLoader extends Application {
@Override @Override
public void onConfigurationChanged(Configuration newConfig) { public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig); super.onConfigurationChanged(newConfig);
LocaleController.getInstance().onDeviceConfigurationChange(newConfig); try {
Utilities.checkDisplaySize(); LocaleController.getInstance().onDeviceConfigurationChange(newConfig);
Utilities.checkDisplaySize();
} catch (Exception e) {
e.printStackTrace();
}
} }
public static void resetLastPauseTime() { public static void resetLastPauseTime() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment