Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xabber-android
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
xabber-android
Commits
2b1a2016
Commit
2b1a2016
authored
Mar 11, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Contact title bar: contact status filled with standard text if empty.
Custom status trimmed.
parent
75da588e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
ContactTitleInflater.java
...va/com/xabber/android/ui/helper/ContactTitleInflater.java
+4
-5
No files found.
app/src/main/java/com/xabber/android/ui/helper/ContactTitleInflater.java
View file @
2b1a2016
...
...
@@ -78,16 +78,15 @@ public class ContactTitleInflater {
ChatState
chatState
=
ChatStateManager
.
getInstance
().
getChatState
(
abstractContact
.
getAccount
(),
abstractContact
.
getUser
());
final
CharSequence
statusText
;
CharSequence
statusText
;
if
(
chatState
==
ChatState
.
composing
)
{
statusText
=
activity
.
getString
(
R
.
string
.
chat_state_composing
);
}
else
if
(
chatState
==
ChatState
.
paused
)
{
statusText
=
activity
.
getString
(
R
.
string
.
chat_state_paused
);
}
else
{
if
(
isContactOffline
(
statusLevel
))
{
statusText
=
activity
.
getString
(
R
.
string
.
unavailable
);
}
else
{
statusText
=
Emoticons
.
getSmiledText
(
activity
,
abstractContact
.
getStatusText
());
statusText
=
Emoticons
.
getSmiledText
(
activity
,
abstractContact
.
getStatusText
()).
toString
().
trim
();
if
(
statusText
.
toString
().
isEmpty
())
{
statusText
=
activity
.
getString
(
abstractContact
.
getStatusMode
().
getStringID
());
}
}
statusTextView
.
setText
(
statusText
);
...
...
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