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
17f2672a
Commit
17f2672a
authored
Feb 05, 2013
by
Alexander Ivanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable auto-away status while on "do not disturb". Fixes #18.
parent
a5f9fea0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
AccountItem.java
src/com/xabber/android/data/account/AccountItem.java
+6
-4
No files found.
src/com/xabber/android/data/account/AccountItem.java
View file @
17f2672a
...
...
@@ -284,10 +284,12 @@ public class AccountItem extends ConnectionItem {
return
new
Presence
(
Type
.
unavailable
);
else
{
int
priority
;
if
(
AccountManager
.
getInstance
().
isXa
())
statusMode
=
StatusMode
.
xa
;
else
if
(
AccountManager
.
getInstance
().
isAway
())
statusMode
=
StatusMode
.
away
;
if
(
statusMode
!=
StatusMode
.
dnd
)
{
if
(
AccountManager
.
getInstance
().
isXa
())
statusMode
=
StatusMode
.
xa
;
else
if
(
AccountManager
.
getInstance
().
isAway
())
statusMode
=
StatusMode
.
away
;
}
if
(
SettingsManager
.
connectionAdjustPriority
())
{
if
(
statusMode
==
StatusMode
.
available
)
priority
=
SettingsManager
.
connectionPriorityAvailable
();
...
...
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