mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-22 06:25:14 +01:00
Addition to previous commit
This commit is contained in:
parent
0f53d75a80
commit
8351b066ac
3 changed files with 13 additions and 5 deletions
|
@ -82,7 +82,7 @@ android {
|
|||
defaultConfig {
|
||||
minSdkVersion 8
|
||||
targetSdkVersion 19
|
||||
versionCode 209
|
||||
versionCode 211
|
||||
versionName "1.4.8"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -147,7 +147,7 @@ public class LocaleController {
|
|||
}
|
||||
|
||||
public void applyLanguage(LocaleInfo localeInfo, boolean override) {
|
||||
if (localeInfo == null || localeInfo == currentLocaleInfo) {
|
||||
if (localeInfo == null) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
|
|
|
@ -120,7 +120,11 @@ public class ApplicationLoader extends Application {
|
|||
lastPauseTime = System.currentTimeMillis();
|
||||
applicationContext = getApplicationContext();
|
||||
NativeLoader.initNativeLibs(this);
|
||||
LocaleController.getInstance();
|
||||
try {
|
||||
LocaleController.getInstance();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
applicationHandler = new Handler(applicationContext.getMainLooper());
|
||||
|
||||
|
@ -142,8 +146,12 @@ public class ApplicationLoader extends Application {
|
|||
@Override
|
||||
public void onConfigurationChanged(Configuration newConfig) {
|
||||
super.onConfigurationChanged(newConfig);
|
||||
LocaleController.getInstance().onDeviceConfigurationChange(newConfig);
|
||||
Utilities.checkDisplaySize();
|
||||
try {
|
||||
LocaleController.getInstance().onDeviceConfigurationChange(newConfig);
|
||||
Utilities.checkDisplaySize();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
public static void resetLastPauseTime() {
|
||||
|
|
Loading…
Reference in a new issue