diff options
Diffstat (limited to '')
-rw-r--r-- | src/de/gultsch/chat/entities/Account.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/de/gultsch/chat/entities/Account.java b/src/de/gultsch/chat/entities/Account.java index f94f7b48..bd2e14c6 100644 --- a/src/de/gultsch/chat/entities/Account.java +++ b/src/de/gultsch/chat/entities/Account.java @@ -30,7 +30,7 @@ public class Account extends AbstractEntity{ protected String username; protected String server; protected String password; - protected int options; + protected int options = 0; protected String rosterVersion; protected String resource; protected int status = 0; @@ -60,8 +60,10 @@ public class Account extends AbstractEntity{ public void setOption(int option, boolean value) { if (value) { this.options = (this.options | 1 << option); + Log.d("xmppService","enabling option "+this.options); } else { - this.options = (this.options ^ 1 << option); + this.options = (this.options & 0 << option); + Log.d("xmppService","disabeling option "+this.options); } } |