1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-04 18:29:23 +02:00

fixed book info reloading

This commit is contained in:
Nikolay Pultsin 2011-07-18 13:25:54 +01:00
parent 6e797b0895
commit de16772e76
6 changed files with 67 additions and 5 deletions

View file

@ -85,4 +85,15 @@ public class BookTree extends LibraryTree {
public boolean containsBook(Book book) {
return book != null && book.equals(Book);
}
@Override
public boolean equals(Object object) {
if (object == this) {
return true;
}
if (!(object instanceof BookTree)) {
return false;
}
return Book.equals(((BookTree)object).Book);
}
}