Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
apk
Commits
8351b066
Commit
8351b066
authored
Mar 25, 2014
by
DrKLO
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Addition to previous commit
parent
0f53d75a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
build.gradle
TMessagesProj/build.gradle
+1
-1
LocaleController.java
...rc/main/java/org/telegram/messenger/LocaleController.java
+1
-1
ApplicationLoader.java
...Proj/src/main/java/org/telegram/ui/ApplicationLoader.java
+11
-3
No files found.
TMessagesProj/build.gradle
View file @
8351b066
...
@@ -82,7 +82,7 @@ android {
...
@@ -82,7 +82,7 @@ android {
defaultConfig
{
defaultConfig
{
minSdkVersion
8
minSdkVersion
8
targetSdkVersion
19
targetSdkVersion
19
versionCode
2
09
versionCode
2
11
versionName
"1.4.8"
versionName
"1.4.8"
}
}
}
}
TMessagesProj/src/main/java/org/telegram/messenger/LocaleController.java
View file @
8351b066
...
@@ -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
{
...
...
TMessagesProj/src/main/java/org/telegram/ui/ApplicationLoader.java
View file @
8351b066
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment