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
9cbbe999
Commit
9cbbe999
authored
Jun 22, 2014
by
DrKLO
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fixes
parent
b85b6c10
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
8 deletions
+19
-8
build.gradle
TMessagesProj/build.gradle
+1
-1
ConnectionsManager.java
.../main/java/org/telegram/messenger/ConnectionsManager.java
+5
-2
MediaController.java
...src/main/java/org/telegram/messenger/MediaController.java
+1
-1
MessagesController.java
.../main/java/org/telegram/messenger/MessagesController.java
+1
-1
DialogCell.java
...sProj/src/main/java/org/telegram/ui/Cells/DialogCell.java
+1
-1
ChatActivity.java
...sagesProj/src/main/java/org/telegram/ui/ChatActivity.java
+10
-2
No files found.
TMessagesProj/build.gradle
View file @
9cbbe999
...
...
@@ -81,7 +81,7 @@ android {
defaultConfig
{
minSdkVersion
8
targetSdkVersion
19
versionCode
26
5
versionCode
26
6
versionName
"1.5.7"
}
}
TMessagesProj/src/main/java/org/telegram/messenger/ConnectionsManager.java
View file @
9cbbe999
...
...
@@ -533,6 +533,7 @@ public class ConnectionsManager implements Action.ActionDelegate, TcpConnection.
if
(
request
.
completionBlock
!=
null
)
{
TLRPC
.
TL_error
implicitError
=
new
TLRPC
.
TL_error
();
implicitError
.
code
=
-
1000
;
implicitError
.
text
=
""
;
request
.
completionBlock
.
run
(
null
,
implicitError
);
}
}
...
...
@@ -542,6 +543,7 @@ public class ConnectionsManager implements Action.ActionDelegate, TcpConnection.
if
(
request
.
completionBlock
!=
null
)
{
TLRPC
.
TL_error
implicitError
=
new
TLRPC
.
TL_error
();
implicitError
.
code
=
-
1000
;
implicitError
.
text
=
""
;
request
.
completionBlock
.
run
(
null
,
implicitError
);
}
}
...
...
@@ -764,7 +766,7 @@ public class ConnectionsManager implements Action.ActionDelegate, TcpConnection.
invoke
.
device_model
=
"Android unknown"
;
}
PackageInfo
pInfo
=
ApplicationLoader
.
applicationContext
.
getPackageManager
().
getPackageInfo
(
ApplicationLoader
.
applicationContext
.
getPackageName
(),
0
);
invoke
.
app_version
=
pInfo
.
versionName
;
invoke
.
app_version
=
pInfo
.
versionName
+
" ("
+
pInfo
.
versionCode
+
")"
;
if
(
invoke
.
app_version
==
null
)
{
invoke
.
app_version
=
"App version unknown"
;
}
...
...
@@ -1719,7 +1721,7 @@ public class ConnectionsManager implements Action.ActionDelegate, TcpConnection.
}
req
.
system_version
=
"SDK "
+
Build
.
VERSION
.
SDK_INT
;
PackageInfo
pInfo
=
ApplicationLoader
.
applicationContext
.
getPackageManager
().
getPackageInfo
(
ApplicationLoader
.
applicationContext
.
getPackageName
(),
0
);
req
.
app_version
=
pInfo
.
versionName
;
req
.
app_version
=
pInfo
.
versionName
+
" ("
+
pInfo
.
versionCode
+
")"
;
if
(
req
.
app_version
==
null
)
{
req
.
app_version
=
"App version unknown"
;
}
...
...
@@ -2027,6 +2029,7 @@ public class ConnectionsManager implements Action.ActionDelegate, TcpConnection.
}
implicitError
=
new
TLRPC
.
TL_error
();
implicitError
.
code
=
-
1000
;
implicitError
.
text
=
""
;
}
}
...
...
TMessagesProj/src/main/java/org/telegram/messenger/MediaController.java
View file @
9cbbe999
...
...
@@ -1024,7 +1024,7 @@ public class MediaController implements NotificationCenter.NotificationCenterDel
fileDecodingQueue
.
postRunnable
(
new
Runnable
()
{
@Override
public
void
run
()
{
if
(
playingMessageObject
.
audioProgress
!=
0
)
{
if
(
playingMessageObject
!=
null
&&
playingMessageObject
.
audioProgress
!=
0
)
{
lastPlayPcm
=
(
long
)(
currentTotalPcmDuration
*
playingMessageObject
.
audioProgress
);
seekOpusFile
(
playingMessageObject
.
audioProgress
);
}
...
...
TMessagesProj/src/main/java/org/telegram/messenger/MessagesController.java
View file @
9cbbe999
...
...
@@ -3093,7 +3093,7 @@ public class MessagesController implements NotificationCenter.NotificationCenter
}
req
.
system_version
=
"SDK "
+
Build
.
VERSION
.
SDK_INT
;
PackageInfo
pInfo
=
ApplicationLoader
.
applicationContext
.
getPackageManager
().
getPackageInfo
(
ApplicationLoader
.
applicationContext
.
getPackageName
(),
0
);
req
.
app_version
=
pInfo
.
versionName
;
req
.
app_version
=
pInfo
.
versionName
+
" ("
+
pInfo
.
versionCode
+
")"
;
if
(
req
.
app_version
==
null
)
{
req
.
app_version
=
"App version unknown"
;
}
...
...
TMessagesProj/src/main/java/org/telegram/ui/Cells/DialogCell.java
View file @
9cbbe999
...
...
@@ -546,7 +546,7 @@ public class DialogCell extends BaseCell {
if
(
chat
!=
null
)
{
nameString
=
chat
.
title
;
}
else
if
(
user
!=
null
)
{
if
(
user
.
id
/
1000
!=
333
&&
ContactsController
.
getInstance
().
contactsDict
.
get
(
user
.
id
)
==
null
)
{
if
(
user
.
id
/
1000
!=
777
&&
user
.
id
/
1000
!=
333
&&
ContactsController
.
getInstance
().
contactsDict
.
get
(
user
.
id
)
==
null
)
{
if
(
ContactsController
.
getInstance
().
contactsDict
.
size
()
==
0
&&
(!
ContactsController
.
getInstance
().
contactsLoaded
||
ContactsController
.
getInstance
().
isLoadingContacts
()))
{
nameString
=
Utilities
.
formatName
(
user
.
first_name
,
user
.
last_name
);
}
else
{
...
...
TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java
View file @
9cbbe999
...
...
@@ -512,7 +512,11 @@ public class ChatActivity extends BaseFragment implements SizeNotifierRelativeLa
if
(
str
.
length
()
!=
0
)
{
str
+=
"\n"
;
}
if
(
messageObject
.
messageOwner
.
message
!=
null
)
{
str
+=
messageObject
.
messageOwner
.
message
;
}
else
{
str
+=
messageObject
.
messageText
;
}
}
if
(
str
.
length
()
!=
0
)
{
if
(
android
.
os
.
Build
.
VERSION
.
SDK_INT
<
11
)
{
...
...
@@ -1510,7 +1514,7 @@ public class ChatActivity extends BaseFragment implements SizeNotifierRelativeLa
if
(
currentChat
!=
null
)
{
actionBarLayer
.
setTitle
(
currentChat
.
title
);
}
else
if
(
currentUser
!=
null
)
{
if
(
currentUser
.
id
/
1000
!=
333
&&
ContactsController
.
getInstance
().
contactsDict
.
get
(
currentUser
.
id
)
==
null
&&
(
ContactsController
.
getInstance
().
contactsDict
.
size
()
!=
0
||
!
ContactsController
.
getInstance
().
isLoadingContacts
()))
{
if
(
currentUser
.
id
/
1000
!=
777
||
currentUser
.
id
/
1000
!=
333
&&
ContactsController
.
getInstance
().
contactsDict
.
get
(
currentUser
.
id
)
==
null
&&
(
ContactsController
.
getInstance
().
contactsDict
.
size
()
!=
0
||
!
ContactsController
.
getInstance
().
isLoadingContacts
()))
{
if
(
currentUser
.
phone
!=
null
&&
currentUser
.
phone
.
length
()
!=
0
)
{
actionBarLayer
.
setTitle
(
PhoneFormat
.
getInstance
().
format
(
"+"
+
currentUser
.
phone
));
}
else
{
...
...
@@ -2646,6 +2650,7 @@ public class ChatActivity extends BaseFragment implements SizeNotifierRelativeLa
}
if
(
currentEncryptedChat
!=
null
&&
!(
currentEncryptedChat
instanceof
TLRPC
.
TL_encryptedChat
)
||
currentUser
.
id
/
1000
==
333
||
currentUser
.
id
/
1000
==
777
||
currentUser
instanceof
TLRPC
.
TL_userEmpty
||
currentUser
instanceof
TLRPC
.
TL_userDeleted
||
(
currentUser
.
phone
!=
null
&&
currentUser
.
phone
.
length
()
!=
0
&&
ContactsController
.
getInstance
().
contactsDict
.
get
(
currentUser
.
id
)
!=
null
&&
...
...
@@ -2723,6 +2728,9 @@ public class ChatActivity extends BaseFragment implements SizeNotifierRelativeLa
}
private
void
createEmojiPopup
()
{
if
(
getParentActivity
()
==
null
)
{
return
;
}
emojiView
=
new
EmojiView
(
getParentActivity
());
emojiView
.
setListener
(
new
EmojiView
.
Listener
()
{
public
void
onBackspace
()
{
...
...
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