Small improvement

pull/206/head
M66B 3 years ago
parent ac204a4bf8
commit be1865387d

@ -29,6 +29,7 @@ import androidx.room.Index;
import androidx.room.PrimaryKey; import androidx.room.PrimaryKey;
import java.util.Date; import java.util.Date;
import java.util.Objects;
import java.util.concurrent.ExecutorService; import java.util.concurrent.ExecutorService;
@Entity( @Entity(
@ -173,7 +174,13 @@ public class EntityLog {
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (obj instanceof EntityLog) { if (obj instanceof EntityLog) {
EntityLog other = (EntityLog) obj; EntityLog other = (EntityLog) obj;
return (this.time.equals(other.time) && this.data.equals(other.data)); return (this.id.equals(other.id) &&
this.time.equals(other.time) &&
this.type.equals(other.type) &&
Objects.equals(this.account, other.account) &&
Objects.equals(this.folder, other.folder) &&
Objects.equals(this.message, other.message) &&
this.data.equals(other.data));
} else } else
return false; return false;
} }

Loading…
Cancel
Save