mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 01:32:17 -05:00
fixed broken bitsets
This commit is contained in:
parent
c82179c0b8
commit
b71bfbaa9d
@ -83,9 +83,9 @@ public class Account extends AbstractEntity{
|
||||
|
||||
public void setOption(int option, boolean value) {
|
||||
if (value) {
|
||||
this.options = (this.options | 1 << option);
|
||||
this.options |= 1 << option;
|
||||
} else {
|
||||
this.options = (this.options & 0 << option);
|
||||
this.options &= ~(1 << option);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user