diff options
author | iNPUTmice <daniel@gultsch.de> | 2015-04-13 18:19:40 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2015-04-13 18:19:40 +0200 |
commit | 2f24b093093296ca6f4f90fbcf664b050a8b03fc (patch) | |
tree | b03c68708579e4929e999cc7527081a786b78980 /src/main/java/eu/siacs/conversations/ui/ManageAccountActivity.java | |
parent | 62faa163f0d5fc2d8d53067cc328f1905d1df370 (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.java | 4 |
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); |