mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-15 08:45:04 +01:00
Fix "calls equals on an enum instance"
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
112a5662ad
commit
72705dbaf5
@ -70,7 +70,7 @@ public class UserItem extends AbstractFlexibleItem<UserItem.UserItemViewHolder>
|
|||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (o instanceof UserItem) {
|
if (o instanceof UserItem) {
|
||||||
UserItem inItem = (UserItem) o;
|
UserItem inItem = (UserItem) o;
|
||||||
return participant.getActorType().equals(inItem.getModel().getActorType()) &&
|
return participant.getActorType() == inItem.getModel().getActorType() &&
|
||||||
participant.getActorId().equals(inItem.getModel().getActorId());
|
participant.getActorId().equals(inItem.getModel().getActorId());
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user