mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-16 14:04:59 -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) {
|
public void setOption(int option, boolean value) {
|
||||||
if (value) {
|
if (value) {
|
||||||
this.options = (this.options | 1 << option);
|
this.options |= 1 << option;
|
||||||
} else {
|
} else {
|
||||||
this.options = (this.options & 0 << option);
|
this.options &= ~(1 << option);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user