aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/ui/ManageAccountActivity.java
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2015-04-13 18:19:40 +0200
committeriNPUTmice <daniel@gultsch.de>2015-04-13 18:19:40 +0200
commit2f24b093093296ca6f4f90fbcf664b050a8b03fc (patch)
treeb03c68708579e4929e999cc7527081a786b78980 /src/main/java/eu/siacs/conversations/ui/ManageAccountActivity.java
parent62faa163f0d5fc2d8d53067cc328f1905d1df370 (diff)
fixed disable account when sliding and not clicking the toggle
Diffstat (limited to 'src/main/java/eu/siacs/conversations/ui/ManageAccountActivity.java')
-rw-r--r--src/main/java/eu/siacs/conversations/ui/ManageAccountActivity.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/ManageAccountActivity.java b/src/main/java/eu/siacs/conversations/ui/ManageAccountActivity.java
index c7db94af6..56dbc55e0 100644
--- a/src/main/java/eu/siacs/conversations/ui/ManageAccountActivity.java
+++ b/src/main/java/eu/siacs/conversations/ui/ManageAccountActivity.java
@@ -168,8 +168,8 @@ public class ManageAccountActivity extends XmppActivity implements OnAccountUpda
}
}
- public void onClickTglAccountState(Account account) {
- if (account.isOptionSet(Account.OPTION_DISABLED)) {
+ public void onClickTglAccountState(Account account, boolean enable) {
+ if (enable) {
enableAccount(account);
} else {
disableAccount(account);