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:
parent
6e797b0895
commit
de16772e76
6 changed files with 67 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue