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
e657c4f0
Commit
e657c4f0
authored
Jun 04, 2014
by
DrKLO
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Previous commit fixes
parent
3fecce96
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
3 deletions
+15
-3
ConnectionsManager.java
.../main/java/org/telegram/messenger/ConnectionsManager.java
+2
-1
ChatActivity.java
...sagesProj/src/main/java/org/telegram/ui/ChatActivity.java
+3
-0
ActionBar.java
.../main/java/org/telegram/ui/Views/ActionBar/ActionBar.java
+2
-1
ActionBarLayer.java
.../java/org/telegram/ui/Views/ActionBar/ActionBarLayer.java
+8
-1
No files found.
TMessagesProj/src/main/java/org/telegram/messenger/ConnectionsManager.java
View file @
e657c4f0
...
@@ -147,7 +147,8 @@ public class ConnectionsManager implements Action.ActionDelegate, TcpConnection.
...
@@ -147,7 +147,8 @@ public class ConnectionsManager implements Action.ActionDelegate, TcpConnection.
if
(
datacenters
!=
null
)
{
if
(
datacenters
!=
null
)
{
MessagesController
.
getInstance
().
updateTimerProc
();
MessagesController
.
getInstance
().
updateTimerProc
();
if
(
datacenterWithId
(
currentDatacenterId
).
authKey
!=
null
)
{
Datacenter
datacenter
=
datacenterWithId
(
currentDatacenterId
);
if
(
datacenter
!=
null
&&
datacenter
.
authKey
!=
null
)
{
if
(
lastPingTime
<
System
.
currentTimeMillis
()
-
19000
)
{
if
(
lastPingTime
<
System
.
currentTimeMillis
()
-
19000
)
{
lastPingTime
=
System
.
currentTimeMillis
();
lastPingTime
=
System
.
currentTimeMillis
();
generatePing
();
generatePing
();
...
...
TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java
View file @
e657c4f0
...
@@ -1036,6 +1036,9 @@ public class ChatActivity extends BaseFragment implements SizeNotifierRelativeLa
...
@@ -1036,6 +1036,9 @@ public class ChatActivity extends BaseFragment implements SizeNotifierRelativeLa
private
String
getTrimmedString
(
String
src
)
{
private
String
getTrimmedString
(
String
src
)
{
String
result
=
src
.
trim
();
String
result
=
src
.
trim
();
if
(
result
.
length
()
==
0
)
{
return
result
;
}
while
(
src
.
startsWith
(
"\n"
))
{
while
(
src
.
startsWith
(
"\n"
))
{
src
=
src
.
substring
(
1
);
src
=
src
.
substring
(
1
);
}
}
...
...
TMessagesProj/src/main/java/org/telegram/ui/Views/ActionBar/ActionBar.java
View file @
e657c4f0
...
@@ -107,9 +107,10 @@ public class ActionBar extends FrameLayout {
...
@@ -107,9 +107,10 @@ public class ActionBar extends FrameLayout {
private
void
updateBackOverlay
(
int
widthMeasureSpec
,
int
heightMeasureSpec
)
{
private
void
updateBackOverlay
(
int
widthMeasureSpec
,
int
heightMeasureSpec
)
{
if
(
currentLayer
!=
null
)
{
if
(
currentLayer
!=
null
)
{
currentLayer
.
setBackLayoutVisible
(
currentBackOverlay
==
null
?
VISIBLE
:
INVISIBLE
);
currentLayer
.
setBackLayoutVisible
(
current
Layer
.
isSearchFieldVisible
||
current
BackOverlay
==
null
?
VISIBLE
:
INVISIBLE
);
}
}
if
(
currentBackOverlay
!=
null
)
{
if
(
currentBackOverlay
!=
null
)
{
currentBackOverlay
.
setVisibility
(
currentLayer
.
isSearchFieldVisible
?
GONE
:
VISIBLE
);
ViewGroup
.
LayoutParams
layoutParams
=
currentBackOverlay
.
getLayoutParams
();
ViewGroup
.
LayoutParams
layoutParams
=
currentBackOverlay
.
getLayoutParams
();
if
(
currentLayer
!=
null
)
{
if
(
currentLayer
!=
null
)
{
currentLayer
.
measure
(
widthMeasureSpec
,
heightMeasureSpec
);
currentLayer
.
measure
(
widthMeasureSpec
,
heightMeasureSpec
);
...
...
TMessagesProj/src/main/java/org/telegram/ui/Views/ActionBar/ActionBarLayer.java
View file @
e657c4f0
...
@@ -40,6 +40,7 @@ public class ActionBarLayer extends FrameLayout {
...
@@ -40,6 +40,7 @@ public class ActionBarLayer extends FrameLayout {
private
ActionBar
parentActionBar
;
private
ActionBar
parentActionBar
;
private
boolean
oldUseLogo
;
private
boolean
oldUseLogo
;
private
boolean
oldUseBack
;
private
boolean
oldUseBack
;
private
boolean
isBackLayoutHidden
=
false
;
protected
boolean
isSearchFieldVisible
;
protected
boolean
isSearchFieldVisible
;
public
ActionBarMenuOnItemClick
actionBarMenuOnItemClick
;
public
ActionBarMenuOnItemClick
actionBarMenuOnItemClick
;
...
@@ -329,7 +330,8 @@ public class ActionBarLayer extends FrameLayout {
...
@@ -329,7 +330,8 @@ public class ActionBarLayer extends FrameLayout {
}
}
public
void
setBackLayoutVisible
(
int
visibility
)
{
public
void
setBackLayoutVisible
(
int
visibility
)
{
backButtonFrameLayout
.
setVisibility
(
visibility
);
isBackLayoutHidden
=
visibility
!=
VISIBLE
;
backButtonFrameLayout
.
setVisibility
(
isSearchFieldVisible
?
VISIBLE
:
visibility
);
}
}
public
int
getBackLayoutWidth
()
{
public
int
getBackLayoutWidth
()
{
...
@@ -406,6 +408,11 @@ public class ActionBarLayer extends FrameLayout {
...
@@ -406,6 +408,11 @@ public class ActionBarLayer extends FrameLayout {
}
else
{
}
else
{
setDisplayHomeAsUpEnabled
(
oldUseBack
);
setDisplayHomeAsUpEnabled
(
oldUseBack
);
}
}
if
(
visible
)
{
backButtonFrameLayout
.
setVisibility
(
VISIBLE
);
}
else
{
backButtonFrameLayout
.
setVisibility
(
isBackLayoutHidden
?
INVISIBLE
:
VISIBLE
);
}
logoImageView
.
setImageResource
(
visible
?
R
.
drawable
.
ic_ab_search
:
R
.
drawable
.
ic_ab_logo
);
logoImageView
.
setImageResource
(
visible
?
R
.
drawable
.
ic_ab_search
:
R
.
drawable
.
ic_ab_logo
);
}
}
...
...
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